\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r264483 = x;
double r264484 = r264483 * r264483;
double r264485 = r264484 * r264483;
return r264485;
}
double f(double x) {
double r264486 = x;
double r264487 = 3.0;
double r264488 = pow(r264486, r264487);
return r264488;
}




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