Average Error: 62.0 → 52.0
Time: 7.6s
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 r41602 = 9.0;
        double r41603 = x;
        double r41604 = 4.0;
        double r41605 = pow(r41603, r41604);
        double r41606 = r41602 * r41605;
        double r41607 = y;
        double r41608 = r41607 * r41607;
        double r41609 = 2.0;
        double r41610 = r41608 - r41609;
        double r41611 = r41608 * r41610;
        double r41612 = r41606 - r41611;
        return r41612;
}

double f(double x, double y) {
        double r41613 = 9.0;
        double r41614 = x;
        double r41615 = 4.0;
        double r41616 = pow(r41614, r41615);
        double r41617 = r41613 * r41616;
        double r41618 = y;
        double r41619 = 4.0;
        double r41620 = pow(r41618, r41619);
        double r41621 = r41617 - r41620;
        double r41622 = 3.0;
        double r41623 = pow(r41621, r41622);
        double r41624 = cbrt(r41623);
        double r41625 = 2.0;
        double r41626 = -r41625;
        double r41627 = r41618 * r41618;
        double r41628 = r41626 * r41627;
        double r41629 = r41624 - r41628;
        return r41629;
}

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} - {y}^{4}\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} - {y}^{4}\right) \cdot \left(9 \cdot {x}^{4} - {y}^{4}\right)\right) \cdot \left(9 \cdot {x}^{4} - {y}^{4}\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 2019212 
(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))))