x \cdot \left(x \cdot x\right) + x \cdot x
\mathsf{fma}\left(x, x, {x}^{3}\right)double f(double x) {
double r82724 = x;
double r82725 = r82724 * r82724;
double r82726 = r82724 * r82725;
double r82727 = r82726 + r82725;
return r82727;
}
double f(double x) {
double r82728 = x;
double r82729 = 3.0;
double r82730 = pow(r82728, r82729);
double r82731 = fma(r82728, r82728, r82730);
return r82731;
}




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 2020025 +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)))