\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r182974 = x;
double r182975 = r182974 * r182974;
double r182976 = r182975 * r182974;
return r182976;
}
double f(double x) {
double r182977 = x;
double r182978 = 3.0;
double r182979 = pow(r182977, r182978);
return r182979;
}




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