\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r108217 = x;
double r108218 = r108217 * r108217;
double r108219 = r108218 * r108217;
return r108219;
}
double f(double x) {
double r108220 = x;
double r108221 = 3.0;
double r108222 = pow(r108220, r108221);
return r108222;
}




Bits error versus x
Results
| Original | 0.1 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.1
Simplified0
Final simplification0
herbie shell --seed 2020020
(FPCore (x)
:name "math.cube on real"
:precision binary64
:herbie-target
(pow x 3)
(* (* x x) x))