\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r4937557 = x;
double r4937558 = r4937557 * r4937557;
double r4937559 = r4937558 * r4937557;
return r4937559;
}
double f(double x) {
double r4937560 = x;
double r4937561 = 3.0;
double r4937562 = pow(r4937560, r4937561);
return r4937562;
}




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