Average Error: 0.1 → 0
Time: 3.3s
Precision: 64
\[\left(x \cdot x\right) \cdot x\]
\[{x}^{3}\]
\left(x \cdot x\right) \cdot x
{x}^{3}
double f(double x) {
        double r43841693 = x;
        double r43841694 = r43841693 * r43841693;
        double r43841695 = r43841694 * r43841693;
        return r43841695;
}

double f(double x) {
        double r43841696 = x;
        double r43841697 = 3.0;
        double r43841698 = pow(r43841696, r43841697);
        return r43841698;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.1
Target0
Herbie0
\[{x}^{3}\]

Derivation

  1. Initial program 0.1

    \[\left(x \cdot x\right) \cdot x\]
  2. Using strategy rm
  3. Applied pow10.1

    \[\leadsto \left(x \cdot \color{blue}{{x}^{1}}\right) \cdot x\]
  4. Applied pow10.1

    \[\leadsto \left(\color{blue}{{x}^{1}} \cdot {x}^{1}\right) \cdot x\]
  5. Applied pow-sqr0.1

    \[\leadsto \color{blue}{{x}^{\left(2 \cdot 1\right)}} \cdot x\]
  6. Applied pow-plus0

    \[\leadsto \color{blue}{{x}^{\left(2 \cdot 1 + 1\right)}}\]
  7. Simplified0

    \[\leadsto {x}^{\color{blue}{3}}\]
  8. Final simplification0

    \[\leadsto {x}^{3}\]

Reproduce

herbie shell --seed 2019125 +o rules:numerics
(FPCore (x)
  :name "math.cube on real"

  :herbie-target
  (pow x 3)

  (* (* x x) x))