\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r174519 = x;
double r174520 = r174519 * r174519;
double r174521 = r174520 * r174519;
return r174521;
}
double f(double x) {
double r174522 = x;
double r174523 = 3.0;
double r174524 = pow(r174522, r174523);
return r174524;
}




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