\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r164805 = x;
double r164806 = r164805 * r164805;
double r164807 = r164806 * r164805;
return r164807;
}
double f(double x) {
double r164808 = x;
double r164809 = 3.0;
double r164810 = pow(r164808, r164809);
return r164810;
}




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