Average Error: 58.1 → 57.1
Time: 19.8s
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 \left(x \cdot x\right) + \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 \left(x \cdot x\right) + \frac{x}{2 \cdot y}
double f(double x, double y) {
        double r685889 = 333.75;
        double r685890 = y;
        double r685891 = 6.0;
        double r685892 = pow(r685890, r685891);
        double r685893 = r685889 * r685892;
        double r685894 = x;
        double r685895 = r685894 * r685894;
        double r685896 = 11.0;
        double r685897 = r685896 * r685894;
        double r685898 = r685897 * r685894;
        double r685899 = r685898 * r685890;
        double r685900 = r685899 * r685890;
        double r685901 = r685900 - r685892;
        double r685902 = 121.0;
        double r685903 = 4.0;
        double r685904 = pow(r685890, r685903);
        double r685905 = r685902 * r685904;
        double r685906 = r685901 - r685905;
        double r685907 = 2.0;
        double r685908 = r685906 - r685907;
        double r685909 = r685895 * r685908;
        double r685910 = r685893 + r685909;
        double r685911 = 5.5;
        double r685912 = 8.0;
        double r685913 = pow(r685890, r685912);
        double r685914 = r685911 * r685913;
        double r685915 = r685910 + r685914;
        double r685916 = r685907 * r685890;
        double r685917 = r685894 / r685916;
        double r685918 = r685915 + r685917;
        return r685918;
}

double f(double x, double y) {
        double r685919 = -2.0;
        double r685920 = x;
        double r685921 = r685920 * r685920;
        double r685922 = r685919 * r685921;
        double r685923 = 2.0;
        double r685924 = y;
        double r685925 = r685923 * r685924;
        double r685926 = r685920 / r685925;
        double r685927 = r685922 + r685926;
        return r685927;
}

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. Simplified57.1

    \[\leadsto \color{blue}{-2 \cdot \left(x \cdot x\right)} + \frac{x}{2 \cdot y}\]
  4. Final simplification57.1

    \[\leadsto -2 \cdot \left(x \cdot x\right) + \frac{x}{2 \cdot y}\]

Reproduce

herbie shell --seed 2019179 +o rules:numerics
(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))))