\left(x \cdot x\right) \cdot x
{x}^{3}double f(double x) {
double r4943457 = x;
double r4943458 = r4943457 * r4943457;
double r4943459 = r4943458 * r4943457;
return r4943459;
}
double f(double x) {
double r4943460 = x;
double r4943461 = 3.0;
double r4943462 = pow(r4943460, r4943461);
return r4943462;
}




Bits error versus x
Results
| Original | 0.1 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.1
rmApplied pow20.1
Applied pow-plus0
Simplified0
Final simplification0
herbie shell --seed 2019139
(FPCore (x)
:name "math.cube on real"
:herbie-target
(pow x 3)
(* (* x x) x))