Average Error: 62.0 → 52.0
Time: 16.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(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 r57015 = 9.0;
        double r57016 = x;
        double r57017 = 4.0;
        double r57018 = pow(r57016, r57017);
        double r57019 = r57015 * r57018;
        double r57020 = y;
        double r57021 = r57020 * r57020;
        double r57022 = 2.0;
        double r57023 = r57021 - r57022;
        double r57024 = r57021 * r57023;
        double r57025 = r57019 - r57024;
        return r57025;
}

double f(double x, double y) {
        double r57026 = 9.0;
        double r57027 = x;
        double r57028 = 4.0;
        double r57029 = pow(r57027, r57028);
        double r57030 = r57026 * r57029;
        double r57031 = y;
        double r57032 = 4.0;
        double r57033 = pow(r57031, r57032);
        double r57034 = r57030 - r57033;
        double r57035 = 3.0;
        double r57036 = pow(r57034, r57035);
        double r57037 = cbrt(r57036);
        double r57038 = r57031 * r57031;
        double r57039 = 2.0;
        double r57040 = -r57039;
        double r57041 = r57038 * r57040;
        double r57042 = r57037 - r57041;
        return r57042;
}

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