Average Error: 58.1 → 57.1
Time: 15.3s
Precision: 64
\[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}\]
\[\frac{x}{y} \cdot 0.5 - \left(2 \cdot x\right) \cdot x\]
\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}
\frac{x}{y} \cdot 0.5 - \left(2 \cdot x\right) \cdot x
double f(double x, double y) {
        double r785522 = 333.75;
        double r785523 = y;
        double r785524 = 6.0;
        double r785525 = pow(r785523, r785524);
        double r785526 = r785522 * r785525;
        double r785527 = x;
        double r785528 = r785527 * r785527;
        double r785529 = 11.0;
        double r785530 = r785529 * r785527;
        double r785531 = r785530 * r785527;
        double r785532 = r785531 * r785523;
        double r785533 = r785532 * r785523;
        double r785534 = r785533 - r785525;
        double r785535 = 121.0;
        double r785536 = 4.0;
        double r785537 = pow(r785523, r785536);
        double r785538 = r785535 * r785537;
        double r785539 = r785534 - r785538;
        double r785540 = 2.0;
        double r785541 = r785539 - r785540;
        double r785542 = r785528 * r785541;
        double r785543 = r785526 + r785542;
        double r785544 = 5.5;
        double r785545 = 8.0;
        double r785546 = pow(r785523, r785545);
        double r785547 = r785544 * r785546;
        double r785548 = r785543 + r785547;
        double r785549 = r785540 * r785523;
        double r785550 = r785527 / r785549;
        double r785551 = r785548 + r785550;
        return r785551;
}

double f(double x, double y) {
        double r785552 = x;
        double r785553 = y;
        double r785554 = r785552 / r785553;
        double r785555 = 0.5;
        double r785556 = r785554 * r785555;
        double r785557 = 2.0;
        double r785558 = r785557 * r785552;
        double r785559 = r785558 * r785552;
        double r785560 = r785556 - r785559;
        return r785560;
}

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}{\left(\left(x \cdot x\right) \cdot \left(\left(11 \cdot \left(\left(x \cdot y\right) \cdot \left(x \cdot y\right)\right) - {y}^{6}\right) - \left(2 + {y}^{4} \cdot 121\right)\right) + {y}^{6} \cdot 333.75\right) + \left({y}^{8} \cdot 5.5 + \frac{x}{2 \cdot y}\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 \frac{x}{y} \cdot 0.5 - \left(2 \cdot x\right) \cdot x\]

Reproduce

herbie shell --seed 2019179 
(FPCore (x y)
  :name "Rump's expression from Stadtherr's award speech"
  :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))))