Average Error: 62.0 → 52.0
Time: 2.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(9 \cdot {x}^{4} - {y}^{4}\right)}^{3}} - \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(9 \cdot {x}^{4} - {y}^{4}\right)}^{3}} - \left(-2\right) \cdot \left(y \cdot y\right)
double f(double x, double y) {
        double r68689 = 9.0;
        double r68690 = x;
        double r68691 = 4.0;
        double r68692 = pow(r68690, r68691);
        double r68693 = r68689 * r68692;
        double r68694 = y;
        double r68695 = r68694 * r68694;
        double r68696 = 2.0;
        double r68697 = r68695 - r68696;
        double r68698 = r68695 * r68697;
        double r68699 = r68693 - r68698;
        return r68699;
}

double f(double x, double y) {
        double r68700 = 9.0;
        double r68701 = x;
        double r68702 = 4.0;
        double r68703 = pow(r68701, r68702);
        double r68704 = r68700 * r68703;
        double r68705 = y;
        double r68706 = 4.0;
        double r68707 = pow(r68705, r68706);
        double r68708 = r68704 - r68707;
        double r68709 = 3.0;
        double r68710 = pow(r68708, r68709);
        double r68711 = cbrt(r68710);
        double r68712 = 2.0;
        double r68713 = -r68712;
        double r68714 = r68705 * r68705;
        double r68715 = r68713 * r68714;
        double r68716 = r68711 - r68715;
        return r68716;
}

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

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

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

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

Reproduce

herbie shell --seed 2019354 
(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))))