Average Error: 58.1 → 57.1
Time: 14.2s
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 r19066 = 333.75;
        double r19067 = y;
        double r19068 = 6.0;
        double r19069 = pow(r19067, r19068);
        double r19070 = r19066 * r19069;
        double r19071 = x;
        double r19072 = r19071 * r19071;
        double r19073 = 11.0;
        double r19074 = r19073 * r19071;
        double r19075 = r19074 * r19071;
        double r19076 = r19075 * r19067;
        double r19077 = r19076 * r19067;
        double r19078 = r19077 - r19069;
        double r19079 = 121.0;
        double r19080 = 4.0;
        double r19081 = pow(r19067, r19080);
        double r19082 = r19079 * r19081;
        double r19083 = r19078 - r19082;
        double r19084 = 2.0;
        double r19085 = r19083 - r19084;
        double r19086 = r19072 * r19085;
        double r19087 = r19070 + r19086;
        double r19088 = 5.5;
        double r19089 = 8.0;
        double r19090 = pow(r19067, r19089);
        double r19091 = r19088 * r19090;
        double r19092 = r19087 + r19091;
        double r19093 = r19084 * r19067;
        double r19094 = r19071 / r19093;
        double r19095 = r19092 + r19094;
        return r19095;
}

double f(double x, double y) {
        double r19096 = -2.0;
        double r19097 = x;
        double r19098 = 2.0;
        double r19099 = pow(r19097, r19098);
        double r19100 = r19096 * r19099;
        double r19101 = 2.0;
        double r19102 = y;
        double r19103 = r19101 * r19102;
        double r19104 = r19097 / r19103;
        double r19105 = r19100 + r19104;
        return r19105;
}

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