\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r210556 = x;
double r210557 = r210556 * r210556;
double r210558 = r210557 * r210556;
return r210558;
}
double f(double x) {
double r210559 = x;
double r210560 = 3.0;
double r210561 = pow(r210559, r210560);
return r210561;
}




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