\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r176473 = x;
double r176474 = r176473 * r176473;
double r176475 = r176474 * r176473;
return r176475;
}
double f(double x) {
double r176476 = x;
double r176477 = 3.0;
double r176478 = pow(r176476, r176477);
return r176478;
}




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