\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r230687 = x;
double r230688 = r230687 * r230687;
double r230689 = r230688 * r230687;
return r230689;
}
double f(double x) {
double r230690 = x;
double r230691 = 3.0;
double r230692 = pow(r230690, r230691);
return r230692;
}




Bits error versus x
Results
| Original | 0.1 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.1
Simplified0
Final simplification0
herbie shell --seed 2019354
(FPCore (x)
:name "math.cube on real"
:precision binary64
:herbie-target
(pow x 3)
(* (* x x) x))