\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r87289 = x;
double r87290 = r87289 * r87289;
double r87291 = r87290 * r87289;
return r87291;
}
double f(double x) {
double r87292 = x;
double r87293 = 3.0;
double r87294 = pow(r87292, r87293);
return r87294;
}




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