\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r5162591 = x;
double r5162592 = r5162591 * r5162591;
double r5162593 = r5162592 * r5162591;
return r5162593;
}
double f(double x) {
double r5162594 = x;
double r5162595 = 3.0;
double r5162596 = pow(r5162594, r5162595);
return r5162596;
}




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 2019143 +o rules:numerics
(FPCore (x)
:name "math.cube on real"
:herbie-target
(pow x 3)
(* (* x x) x))