x \cdot \left(x \cdot x\right) + x \cdot x
{x}^{3} + {x}^{2}double f(double x) {
double r102613 = x;
double r102614 = r102613 * r102613;
double r102615 = r102613 * r102614;
double r102616 = r102615 + r102614;
return r102616;
}
double f(double x) {
double r102617 = x;
double r102618 = 3.0;
double r102619 = pow(r102617, r102618);
double r102620 = 2.0;
double r102621 = pow(r102617, r102620);
double r102622 = r102619 + r102621;
return r102622;
}




Bits error versus x
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020064
(FPCore (x)
:name "Expression 3, p15"
:precision binary64
:pre (<= 0.0 x 2)
:herbie-target
(* (* (+ 1 x) x) x)
(+ (* x (* x x)) (* x x)))