\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r222977 = x;
double r222978 = r222977 * r222977;
double r222979 = r222978 * r222977;
return r222979;
}
double f(double x) {
double r222980 = x;
double r222981 = 3.0;
double r222982 = pow(r222980, r222981);
return r222982;
}




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