Average Error: 62.0 → 52.0
Time: 8.1s
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 r39905 = 9.0;
        double r39906 = x;
        double r39907 = 4.0;
        double r39908 = pow(r39906, r39907);
        double r39909 = r39905 * r39908;
        double r39910 = y;
        double r39911 = r39910 * r39910;
        double r39912 = 2.0;
        double r39913 = r39911 - r39912;
        double r39914 = r39911 * r39913;
        double r39915 = r39909 - r39914;
        return r39915;
}

double f(double x, double y) {
        double r39916 = 9.0;
        double r39917 = x;
        double r39918 = 4.0;
        double r39919 = pow(r39917, r39918);
        double r39920 = r39916 * r39919;
        double r39921 = y;
        double r39922 = 4.0;
        double r39923 = pow(r39921, r39922);
        double r39924 = r39920 - r39923;
        double r39925 = 3.0;
        double r39926 = pow(r39924, r39925);
        double r39927 = cbrt(r39926);
        double r39928 = 2.0;
        double r39929 = -r39928;
        double r39930 = r39921 * r39921;
        double r39931 = r39929 * r39930;
        double r39932 = r39927 - r39931;
        return r39932;
}

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