Average Error: 52.0 → 52.0
Time: 11.2s
Precision: 64
\[x = 10864 \land y = 18817\]
\[\left(9 \cdot {x}^{4} - {y}^{4}\right) + 2 \cdot \left(y \cdot y\right)\]
\[\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)} + 2 \cdot \left(y \cdot y\right)\]
\left(9 \cdot {x}^{4} - {y}^{4}\right) + 2 \cdot \left(y \cdot y\right)
\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)} + 2 \cdot \left(y \cdot y\right)
double f(double x, double y) {
        double r4677593 = 9.0;
        double r4677594 = x;
        double r4677595 = 4.0;
        double r4677596 = pow(r4677594, r4677595);
        double r4677597 = r4677593 * r4677596;
        double r4677598 = y;
        double r4677599 = pow(r4677598, r4677595);
        double r4677600 = r4677597 - r4677599;
        double r4677601 = 2.0;
        double r4677602 = r4677598 * r4677598;
        double r4677603 = r4677601 * r4677602;
        double r4677604 = r4677600 + r4677603;
        return r4677604;
}

double f(double x, double y) {
        double r4677605 = 9.0;
        double r4677606 = x;
        double r4677607 = 4.0;
        double r4677608 = pow(r4677606, r4677607);
        double r4677609 = r4677605 * r4677608;
        double r4677610 = y;
        double r4677611 = pow(r4677610, r4677607);
        double r4677612 = r4677609 - r4677611;
        double r4677613 = r4677612 * r4677612;
        double r4677614 = r4677613 * r4677612;
        double r4677615 = cbrt(r4677614);
        double r4677616 = 2.0;
        double r4677617 = r4677610 * r4677610;
        double r4677618 = r4677616 * r4677617;
        double r4677619 = r4677615 + r4677618;
        return r4677619;
}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 52.0

    \[\left(9 \cdot {x}^{4} - {y}^{4}\right) + 2 \cdot \left(y \cdot y\right)\]
  2. Using strategy rm
  3. 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)}} + 2 \cdot \left(y \cdot y\right)\]
  4. Final simplification52.0

    \[\leadsto \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)} + 2 \cdot \left(y \cdot y\right)\]

Reproduce

herbie shell --seed 2019174 
(FPCore (x y)
  :name "From Rump in a 1983 paper"
  :pre (and (== x 10864.0) (== y 18817.0))
  (+ (- (* 9.0 (pow x 4.0)) (pow y 4.0)) (* 2.0 (* y y))))