\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r360774 = x;
double r360775 = r360774 * r360774;
double r360776 = r360775 * r360774;
return r360776;
}
double f(double x) {
double r360777 = x;
double r360778 = 3.0;
double r360779 = pow(r360777, r360778);
return r360779;
}




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