\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r374306 = x;
double r374307 = r374306 * r374306;
double r374308 = r374307 * r374306;
return r374308;
}
double f(double x) {
double r374309 = x;
double r374310 = 3.0;
double r374311 = pow(r374309, r374310);
return r374311;
}




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