Average Error: 62.0 → 52.0
Time: 16.0s
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 r3508602 = 9.0;
        double r3508603 = x;
        double r3508604 = 4.0;
        double r3508605 = pow(r3508603, r3508604);
        double r3508606 = r3508602 * r3508605;
        double r3508607 = y;
        double r3508608 = r3508607 * r3508607;
        double r3508609 = 2.0;
        double r3508610 = r3508608 - r3508609;
        double r3508611 = r3508608 * r3508610;
        double r3508612 = r3508606 - r3508611;
        return r3508612;
}

double f(double x, double y) {
        double r3508613 = x;
        double r3508614 = 4.0;
        double r3508615 = pow(r3508613, r3508614);
        double r3508616 = 9.0;
        double r3508617 = r3508615 * r3508616;
        double r3508618 = y;
        double r3508619 = r3508618 * r3508618;
        double r3508620 = r3508619 * r3508619;
        double r3508621 = r3508617 - r3508620;
        double r3508622 = r3508621 * r3508621;
        double r3508623 = r3508622 * r3508621;
        double r3508624 = cbrt(r3508623);
        double r3508625 = 2.0;
        double r3508626 = -r3508625;
        double r3508627 = r3508626 * r3508619;
        double r3508628 = r3508624 - r3508627;
        return r3508628;
}

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-rgt-in62.0

    \[\leadsto 9 \cdot {x}^{4} - \color{blue}{\left(\left(y \cdot y\right) \cdot \left(y \cdot y\right) + \left(-2\right) \cdot \left(y \cdot y\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(-2\right) \cdot \left(y \cdot y\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(-2\right) \cdot \left(y \cdot y\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 2019170 
(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))))