\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r1380480 = x;
double r1380481 = r1380480 * r1380480;
double r1380482 = r1380481 * r1380480;
return r1380482;
}
double f(double x) {
double r1380483 = x;
double r1380484 = 3.0;
double r1380485 = pow(r1380483, r1380484);
return r1380485;
}




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