\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r39223584 = x;
double r39223585 = r39223584 * r39223584;
double r39223586 = r39223585 * r39223584;
return r39223586;
}
double f(double x) {
double r39223587 = x;
double r39223588 = 3.0;
double r39223589 = pow(r39223587, r39223588);
return r39223589;
}




Bits error versus x
Results
| Original | 0.1 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.1
rmApplied pow10.1
Applied pow-plus0.1
Applied pow-plus0
Simplified0
Final simplification0
herbie shell --seed 2019125
(FPCore (x)
:name "math.cube on real"
:herbie-target
(pow x 3)
(* (* x x) x))