Average Error: 62.0 → 52.0
Time: 2.8s
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 r57031 = 9.0;
        double r57032 = x;
        double r57033 = 4.0;
        double r57034 = pow(r57032, r57033);
        double r57035 = r57031 * r57034;
        double r57036 = y;
        double r57037 = r57036 * r57036;
        double r57038 = 2.0;
        double r57039 = r57037 - r57038;
        double r57040 = r57037 * r57039;
        double r57041 = r57035 - r57040;
        return r57041;
}

double f(double x, double y) {
        double r57042 = 9.0;
        double r57043 = x;
        double r57044 = 4.0;
        double r57045 = pow(r57043, r57044);
        double r57046 = r57042 * r57045;
        double r57047 = y;
        double r57048 = 4.0;
        double r57049 = pow(r57047, r57048);
        double r57050 = r57046 - r57049;
        double r57051 = 3.0;
        double r57052 = pow(r57050, r57051);
        double r57053 = cbrt(r57052);
        double r57054 = 2.0;
        double r57055 = -r57054;
        double r57056 = r57047 * r57047;
        double r57057 = r57055 * r57056;
        double r57058 = r57053 - r57057;
        return r57058;
}

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} + \left(-{y}^{4}\right)\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} + \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(-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 2020065 
(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))))