\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r144956 = x;
double r144957 = r144956 * r144956;
double r144958 = r144957 * r144956;
return r144958;
}
double f(double x) {
double r144959 = x;
double r144960 = 3.0;
double r144961 = pow(r144959, r144960);
return r144961;
}




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))