Average Error: 58.1 → 57.1
Time: 9.8s
Precision: binary64
\[\]
\[\]
\[\]
double code(double x, double y) {
	return (((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));
}
double code(double x, double y) {
	return ((x * x) * -2.0) + (x / (2.0 * y));
}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 58.1

    \[\]
  2. Taylor expanded around 0 57.1

    \[\leadsto \]
  3. Simplified57.1

    \[\leadsto \]
  4. Final simplification57.1

    \[\leadsto \]

Reproduce

herbie shell --seed 2020322 
(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))))