\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r319099 = x;
double r319100 = r319099 * r319099;
double r319101 = r319100 * r319099;
return r319101;
}
double f(double x) {
double r319102 = x;
double r319103 = 3.0;
double r319104 = pow(r319102, r319103);
return r319104;
}




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