\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r40071670 = x;
double r40071671 = r40071670 * r40071670;
double r40071672 = r40071671 * r40071670;
return r40071672;
}
double f(double x) {
double r40071673 = x;
double r40071674 = 3.0;
double r40071675 = pow(r40071673, r40071674);
return r40071675;
}




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