Average Error: 58.1 → 57.1
Time: 2.0s
Precision: binary64
\[x = 77617 \land y = 33096\]
\[\left(\left(333.75 \cdot {y}^{6} + \left(x \cdot x\right) \cdot \left(\left(\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - {y}^{6}\right) - 121 \cdot {y}^{4}\right) - 2\right)\right) + 5.5 \cdot {y}^{8}\right) + \frac{x}{2 \cdot y}\]
\[0.5 \cdot \frac{x}{y} - x \cdot \left(x \cdot 2\right)\]
\left(\left(333.75 \cdot {y}^{6} + \left(x \cdot x\right) \cdot \left(\left(\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - {y}^{6}\right) - 121 \cdot {y}^{4}\right) - 2\right)\right) + 5.5 \cdot {y}^{8}\right) + \frac{x}{2 \cdot y}
0.5 \cdot \frac{x}{y} - x \cdot \left(x \cdot 2\right)
double code(double x, double y) {
	return ((double) (((double) (((double) (((double) (333.75 * ((double) pow(y, 6.0)))) + ((double) (((double) (x * x)) * ((double) (((double) (((double) (((double) (((double) (((double) (((double) (11.0 * x)) * x)) * y)) * y)) - ((double) pow(y, 6.0)))) - ((double) (121.0 * ((double) pow(y, 4.0)))))) - 2.0)))))) + ((double) (5.5 * ((double) pow(y, 8.0)))))) + (x / ((double) (2.0 * y)))));
}
double code(double x, double y) {
	return ((double) (((double) (0.5 * (x / y))) - ((double) (x * ((double) (x * 2.0))))));
}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 58.1

    \[\left(\left(333.75 \cdot {y}^{6} + \left(x \cdot x\right) \cdot \left(\left(\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - {y}^{6}\right) - 121 \cdot {y}^{4}\right) - 2\right)\right) + 5.5 \cdot {y}^{8}\right) + \frac{x}{2 \cdot y}\]
  2. Simplified58.1

    \[\leadsto \color{blue}{333.75 \cdot {y}^{6} + \left(x \cdot \left(\left(y \cdot \left(y \cdot 11\right)\right) \cdot {x}^{3} - x \cdot \left({y}^{6} + \left(121 \cdot {y}^{4} + 2\right)\right)\right) + \left(5.5 \cdot {y}^{8} + \frac{x}{y \cdot 2}\right)\right)}\]
  3. Taylor expanded around 0 57.1

    \[\leadsto \color{blue}{0.5 \cdot \frac{x}{y} - 2 \cdot {x}^{2}}\]
  4. Simplified57.1

    \[\leadsto \color{blue}{0.5 \cdot \frac{x}{y} - x \cdot \left(x \cdot 2\right)}\]
  5. Final simplification57.1

    \[\leadsto 0.5 \cdot \frac{x}{y} - x \cdot \left(x \cdot 2\right)\]

Reproduce

herbie shell --seed 2020196 
(FPCore (x y)
  :name "Rump's expression from Stadtherr's award speech"
  :precision binary64
  :pre (and (== x 77617.0) (== y 33096.0))
  (+ (+ (+ (* 333.75 (pow y 6.0)) (* (* x x) (- (- (- (* (* (* (* 11.0 x) x) y) y) (pow y 6.0)) (* 121.0 (pow y 4.0))) 2.0))) (* 5.5 (pow y 8.0))) (/ x (* 2.0 y))))