Average Error: 62.0 → 52.0
Time: 2.7s
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(y \cdot y\right) \cdot \left(-2\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(y \cdot y\right) \cdot \left(-2\right)
double f(double x, double y) {
        double r79641 = 9.0;
        double r79642 = x;
        double r79643 = 4.0;
        double r79644 = pow(r79642, r79643);
        double r79645 = r79641 * r79644;
        double r79646 = y;
        double r79647 = r79646 * r79646;
        double r79648 = 2.0;
        double r79649 = r79647 - r79648;
        double r79650 = r79647 * r79649;
        double r79651 = r79645 - r79650;
        return r79651;
}

double f(double x, double y) {
        double r79652 = 9.0;
        double r79653 = x;
        double r79654 = 4.0;
        double r79655 = pow(r79653, r79654);
        double r79656 = r79652 * r79655;
        double r79657 = y;
        double r79658 = 4.0;
        double r79659 = pow(r79657, r79658);
        double r79660 = r79656 - r79659;
        double r79661 = 3.0;
        double r79662 = pow(r79660, r79661);
        double r79663 = cbrt(r79662);
        double r79664 = r79657 * r79657;
        double r79665 = 2.0;
        double r79666 = -r79665;
        double r79667 = r79664 * r79666;
        double r79668 = r79663 - r79667;
        return r79668;
}

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

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

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

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

Reproduce

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