\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r4763698 = x;
double r4763699 = r4763698 * r4763698;
double r4763700 = r4763699 * r4763698;
return r4763700;
}
double f(double x) {
double r4763701 = x;
double r4763702 = 3.0;
double r4763703 = pow(r4763701, r4763702);
return r4763703;
}




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