\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r205027 = x;
double r205028 = r205027 * r205027;
double r205029 = r205028 * r205027;
return r205029;
}
double f(double x) {
double r205030 = x;
double r205031 = 3.0;
double r205032 = pow(r205030, r205031);
return r205032;
}




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