Average Error: 62.0 → 52.0
Time: 3.5s
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 r53160 = 9.0;
        double r53161 = x;
        double r53162 = 4.0;
        double r53163 = pow(r53161, r53162);
        double r53164 = r53160 * r53163;
        double r53165 = y;
        double r53166 = r53165 * r53165;
        double r53167 = 2.0;
        double r53168 = r53166 - r53167;
        double r53169 = r53166 * r53168;
        double r53170 = r53164 - r53169;
        return r53170;
}

double f(double x, double y) {
        double r53171 = 9.0;
        double r53172 = x;
        double r53173 = 4.0;
        double r53174 = pow(r53172, r53173);
        double r53175 = r53171 * r53174;
        double r53176 = y;
        double r53177 = 4.0;
        double r53178 = pow(r53176, r53177);
        double r53179 = r53175 - r53178;
        double r53180 = 3.0;
        double r53181 = pow(r53179, r53180);
        double r53182 = cbrt(r53181);
        double r53183 = r53176 * r53176;
        double r53184 = 2.0;
        double r53185 = -r53184;
        double r53186 = r53183 * r53185;
        double r53187 = r53182 - r53186;
        return r53187;
}

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