\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r356896 = x;
double r356897 = r356896 * r356896;
double r356898 = r356897 * r356896;
return r356898;
}
double f(double x) {
double r356899 = x;
double r356900 = 3.0;
double r356901 = pow(r356899, r356900);
return r356901;
}




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