\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r9864342 = x;
double r9864343 = r9864342 * r9864342;
double r9864344 = r9864343 * r9864342;
return r9864344;
}
double f(double x) {
double r9864345 = x;
double r9864346 = 3.0;
double r9864347 = pow(r9864345, r9864346);
return r9864347;
}




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