\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r238739 = x;
double r238740 = r238739 * r238739;
double r238741 = r238740 * r238739;
return r238741;
}
double f(double x) {
double r238742 = x;
double r238743 = 3.0;
double r238744 = pow(r238742, r238743);
return r238744;
}




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