\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r8765182 = x;
double r8765183 = r8765182 * r8765182;
double r8765184 = r8765183 * r8765182;
return r8765184;
}
double f(double x) {
double r8765185 = x;
double r8765186 = 3.0;
double r8765187 = pow(r8765185, r8765186);
return r8765187;
}




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