x \cdot \left(x \cdot x\right) + x \cdot x
\mathsf{fma}\left(x, x, {x}^{3}\right)double f(double x) {
double r118696 = x;
double r118697 = r118696 * r118696;
double r118698 = r118696 * r118697;
double r118699 = r118698 + r118697;
return r118699;
}
double f(double x) {
double r118700 = x;
double r118701 = 3.0;
double r118702 = pow(r118700, r118701);
double r118703 = fma(r118700, r118700, r118702);
return r118703;
}




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