Average Error: 62.0 → 52.0
Time: 7.4s
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 r72918 = 9.0;
        double r72919 = x;
        double r72920 = 4.0;
        double r72921 = pow(r72919, r72920);
        double r72922 = r72918 * r72921;
        double r72923 = y;
        double r72924 = r72923 * r72923;
        double r72925 = 2.0;
        double r72926 = r72924 - r72925;
        double r72927 = r72924 * r72926;
        double r72928 = r72922 - r72927;
        return r72928;
}

double f(double x, double y) {
        double r72929 = 9.0;
        double r72930 = x;
        double r72931 = 4.0;
        double r72932 = pow(r72930, r72931);
        double r72933 = r72929 * r72932;
        double r72934 = y;
        double r72935 = 4.0;
        double r72936 = pow(r72934, r72935);
        double r72937 = r72933 - r72936;
        double r72938 = 3.0;
        double r72939 = pow(r72937, r72938);
        double r72940 = cbrt(r72939);
        double r72941 = 2.0;
        double r72942 = -r72941;
        double r72943 = r72934 * r72934;
        double r72944 = r72942 * r72943;
        double r72945 = r72940 - r72944;
        return r72945;
}

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