Average Error: 62.0 → 52.0
Time: 29.9s
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 r3632595 = 9.0;
        double r3632596 = x;
        double r3632597 = 4.0;
        double r3632598 = pow(r3632596, r3632597);
        double r3632599 = r3632595 * r3632598;
        double r3632600 = y;
        double r3632601 = r3632600 * r3632600;
        double r3632602 = 2.0;
        double r3632603 = r3632601 - r3632602;
        double r3632604 = r3632601 * r3632603;
        double r3632605 = r3632599 - r3632604;
        return r3632605;
}

double f(double x, double y) {
        double r3632606 = x;
        double r3632607 = 4.0;
        double r3632608 = pow(r3632606, r3632607);
        double r3632609 = 9.0;
        double r3632610 = r3632608 * r3632609;
        double r3632611 = y;
        double r3632612 = r3632611 * r3632611;
        double r3632613 = r3632612 * r3632612;
        double r3632614 = r3632610 - r3632613;
        double r3632615 = r3632614 * r3632614;
        double r3632616 = r3632615 * r3632614;
        double r3632617 = cbrt(r3632616);
        double r3632618 = 2.0;
        double r3632619 = -r3632618;
        double r3632620 = r3632619 * r3632612;
        double r3632621 = r3632617 - r3632620;
        return r3632621;
}

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