\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r43841693 = x;
double r43841694 = r43841693 * r43841693;
double r43841695 = r43841694 * r43841693;
return r43841695;
}
double f(double x) {
double r43841696 = x;
double r43841697 = 3.0;
double r43841698 = pow(r43841696, r43841697);
return r43841698;
}




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