Average Error: 62.0 → 52.0
Time: 16.2s
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 r3079694 = 9.0;
        double r3079695 = x;
        double r3079696 = 4.0;
        double r3079697 = pow(r3079695, r3079696);
        double r3079698 = r3079694 * r3079697;
        double r3079699 = y;
        double r3079700 = r3079699 * r3079699;
        double r3079701 = 2.0;
        double r3079702 = r3079700 - r3079701;
        double r3079703 = r3079700 * r3079702;
        double r3079704 = r3079698 - r3079703;
        return r3079704;
}

double f(double x, double y) {
        double r3079705 = x;
        double r3079706 = 4.0;
        double r3079707 = pow(r3079705, r3079706);
        double r3079708 = 9.0;
        double r3079709 = r3079707 * r3079708;
        double r3079710 = y;
        double r3079711 = r3079710 * r3079710;
        double r3079712 = r3079711 * r3079711;
        double r3079713 = r3079709 - r3079712;
        double r3079714 = r3079713 * r3079713;
        double r3079715 = r3079714 * r3079713;
        double r3079716 = cbrt(r3079715);
        double r3079717 = 2.0;
        double r3079718 = -r3079717;
        double r3079719 = r3079718 * r3079711;
        double r3079720 = r3079716 - r3079719;
        return r3079720;
}

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