Average Error: 62.0 → 52.0
Time: 15.8s
Precision: 64
\[x = 10864 \land y = 18817\]
\[9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y - 2\right)\]
\[\sqrt[3]{\left(\left({x}^{4} \cdot 9 - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left({x}^{4} \cdot 9 - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\right) \cdot \left({x}^{4} \cdot 9 - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)} - \left(-2\right) \cdot \left(y \cdot y\right)\]
9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y - 2\right)
\sqrt[3]{\left(\left({x}^{4} \cdot 9 - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left({x}^{4} \cdot 9 - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\right) \cdot \left({x}^{4} \cdot 9 - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)} - \left(-2\right) \cdot \left(y \cdot y\right)
double f(double x, double y) {
        double r2540394 = 9.0;
        double r2540395 = x;
        double r2540396 = 4.0;
        double r2540397 = pow(r2540395, r2540396);
        double r2540398 = r2540394 * r2540397;
        double r2540399 = y;
        double r2540400 = r2540399 * r2540399;
        double r2540401 = 2.0;
        double r2540402 = r2540400 - r2540401;
        double r2540403 = r2540400 * r2540402;
        double r2540404 = r2540398 - r2540403;
        return r2540404;
}

double f(double x, double y) {
        double r2540405 = x;
        double r2540406 = 4.0;
        double r2540407 = pow(r2540405, r2540406);
        double r2540408 = 9.0;
        double r2540409 = r2540407 * r2540408;
        double r2540410 = y;
        double r2540411 = r2540410 * r2540410;
        double r2540412 = r2540411 * r2540411;
        double r2540413 = r2540409 - r2540412;
        double r2540414 = r2540413 * r2540413;
        double r2540415 = r2540414 * r2540413;
        double r2540416 = cbrt(r2540415);
        double r2540417 = 2.0;
        double r2540418 = -r2540417;
        double r2540419 = r2540418 * r2540411;
        double r2540420 = r2540416 - r2540419;
        return r2540420;
}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 62.0

    \[9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y - 2\right)\]
  2. Using strategy rm
  3. Applied sub-neg62.0

    \[\leadsto 9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \color{blue}{\left(y \cdot y + \left(-2\right)\right)}\]
  4. Applied distribute-lft-in62.0

    \[\leadsto 9 \cdot {x}^{4} - \color{blue}{\left(\left(y \cdot y\right) \cdot \left(y \cdot y\right) + \left(y \cdot y\right) \cdot \left(-2\right)\right)}\]
  5. Applied associate--r+52.0

    \[\leadsto \color{blue}{\left(9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) - \left(y \cdot y\right) \cdot \left(-2\right)}\]
  6. Using strategy rm
  7. Applied add-cbrt-cube52.0

    \[\leadsto \color{blue}{\sqrt[3]{\left(\left(9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left(9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\right) \cdot \left(9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)}} - \left(y \cdot y\right) \cdot \left(-2\right)\]
  8. Final simplification52.0

    \[\leadsto \sqrt[3]{\left(\left({x}^{4} \cdot 9 - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left({x}^{4} \cdot 9 - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\right) \cdot \left({x}^{4} \cdot 9 - \left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)} - \left(-2\right) \cdot \left(y \cdot y\right)\]

Reproduce

herbie shell --seed 2019179 
(FPCore (x y)
  :name "From Rump in a 1983 paper, rewritten"
  :pre (and (== x 10864.0) (== y 18817.0))
  (- (* 9.0 (pow x 4.0)) (* (* y y) (- (* y y) 2.0))))