Average Error: 62.0 → 52.0
Time: 2.7s
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(9 \cdot {x}^{4} - {y}^{4}\right)}^{3}} - \left(y \cdot y\right) \cdot \left(-2\right)\]
9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y - 2\right)
\sqrt[3]{{\left(9 \cdot {x}^{4} - {y}^{4}\right)}^{3}} - \left(y \cdot y\right) \cdot \left(-2\right)
double f(double x, double y) {
        double r53413 = 9.0;
        double r53414 = x;
        double r53415 = 4.0;
        double r53416 = pow(r53414, r53415);
        double r53417 = r53413 * r53416;
        double r53418 = y;
        double r53419 = r53418 * r53418;
        double r53420 = 2.0;
        double r53421 = r53419 - r53420;
        double r53422 = r53419 * r53421;
        double r53423 = r53417 - r53422;
        return r53423;
}

double f(double x, double y) {
        double r53424 = 9.0;
        double r53425 = x;
        double r53426 = 4.0;
        double r53427 = pow(r53425, r53426);
        double r53428 = r53424 * r53427;
        double r53429 = y;
        double r53430 = 4.0;
        double r53431 = pow(r53429, r53430);
        double r53432 = r53428 - r53431;
        double r53433 = 3.0;
        double r53434 = pow(r53432, r53433);
        double r53435 = cbrt(r53434);
        double r53436 = r53429 * r53429;
        double r53437 = 2.0;
        double r53438 = -r53437;
        double r53439 = r53436 * r53438;
        double r53440 = r53435 - r53439;
        return r53440;
}

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. Simplified52.0

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

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

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

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

Reproduce

herbie shell --seed 2020060 
(FPCore (x y)
  :name "From Rump in a 1983 paper, rewritten"
  :precision binary64
  :pre (and (== x 10864) (== y 18817))
  (- (* 9 (pow x 4)) (* (* y y) (- (* y y) 2))))