Average Error: 58.1 → 57.1
Time: 14.1s
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}\]
\[-2 \cdot {x}^{2} + \frac{x}{2 \cdot y}\]
\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 \cdot {x}^{2} + \frac{x}{2 \cdot y}
double f(double x, double y) {
        double r19089 = 333.75;
        double r19090 = y;
        double r19091 = 6.0;
        double r19092 = pow(r19090, r19091);
        double r19093 = r19089 * r19092;
        double r19094 = x;
        double r19095 = r19094 * r19094;
        double r19096 = 11.0;
        double r19097 = r19096 * r19094;
        double r19098 = r19097 * r19094;
        double r19099 = r19098 * r19090;
        double r19100 = r19099 * r19090;
        double r19101 = r19100 - r19092;
        double r19102 = 121.0;
        double r19103 = 4.0;
        double r19104 = pow(r19090, r19103);
        double r19105 = r19102 * r19104;
        double r19106 = r19101 - r19105;
        double r19107 = 2.0;
        double r19108 = r19106 - r19107;
        double r19109 = r19095 * r19108;
        double r19110 = r19093 + r19109;
        double r19111 = 5.5;
        double r19112 = 8.0;
        double r19113 = pow(r19090, r19112);
        double r19114 = r19111 * r19113;
        double r19115 = r19110 + r19114;
        double r19116 = r19107 * r19090;
        double r19117 = r19094 / r19116;
        double r19118 = r19115 + r19117;
        return r19118;
}

double f(double x, double y) {
        double r19119 = -2.0;
        double r19120 = x;
        double r19121 = 2.0;
        double r19122 = pow(r19120, r19121);
        double r19123 = r19119 * r19122;
        double r19124 = 2.0;
        double r19125 = y;
        double r19126 = r19124 * r19125;
        double r19127 = r19120 / r19126;
        double r19128 = r19123 + r19127;
        return r19128;
}

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. Taylor expanded around 0 57.1

    \[\leadsto \color{blue}{-2 \cdot {x}^{2}} + \frac{x}{2 \cdot y}\]
  3. Final simplification57.1

    \[\leadsto -2 \cdot {x}^{2} + \frac{x}{2 \cdot y}\]

Reproduce

herbie shell --seed 2019326 
(FPCore (x y)
  :name "Rump's expression from Stadtherr's award speech"
  :precision binary64
  :pre (and (== x 77617) (== y 33096))
  (+ (+ (+ (* 333.75 (pow y 6)) (* (* x x) (- (- (- (* (* (* (* 11 x) x) y) y) (pow y 6)) (* 121 (pow y 4))) 2))) (* 5.5 (pow y 8))) (/ x (* 2 y))))