\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r4781539 = x;
double r4781540 = r4781539 * r4781539;
double r4781541 = r4781540 * r4781539;
return r4781541;
}
double f(double x) {
double r4781542 = x;
double r4781543 = 3.0;
double r4781544 = pow(r4781542, r4781543);
return r4781544;
}




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