Average Error: 58.1 → 57.1
Time: 14.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}\]
\[-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 r19082 = 333.75;
        double r19083 = y;
        double r19084 = 6.0;
        double r19085 = pow(r19083, r19084);
        double r19086 = r19082 * r19085;
        double r19087 = x;
        double r19088 = r19087 * r19087;
        double r19089 = 11.0;
        double r19090 = r19089 * r19087;
        double r19091 = r19090 * r19087;
        double r19092 = r19091 * r19083;
        double r19093 = r19092 * r19083;
        double r19094 = r19093 - r19085;
        double r19095 = 121.0;
        double r19096 = 4.0;
        double r19097 = pow(r19083, r19096);
        double r19098 = r19095 * r19097;
        double r19099 = r19094 - r19098;
        double r19100 = 2.0;
        double r19101 = r19099 - r19100;
        double r19102 = r19088 * r19101;
        double r19103 = r19086 + r19102;
        double r19104 = 5.5;
        double r19105 = 8.0;
        double r19106 = pow(r19083, r19105);
        double r19107 = r19104 * r19106;
        double r19108 = r19103 + r19107;
        double r19109 = r19100 * r19083;
        double r19110 = r19087 / r19109;
        double r19111 = r19108 + r19110;
        return r19111;
}

double f(double x, double y) {
        double r19112 = -2.0;
        double r19113 = x;
        double r19114 = 2.0;
        double r19115 = pow(r19113, r19114);
        double r19116 = r19112 * r19115;
        double r19117 = 2.0;
        double r19118 = y;
        double r19119 = r19117 * r19118;
        double r19120 = r19113 / r19119;
        double r19121 = r19116 + r19120;
        return r19121;
}

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))))