\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r441075 = x;
double r441076 = r441075 * r441075;
double r441077 = r441076 * r441075;
return r441077;
}
double f(double x) {
double r441078 = x;
double r441079 = 3.0;
double r441080 = pow(r441078, r441079);
return r441080;
}




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