x + x \cdot x
\mathsf{fma}\left(x, x, x\right)double f(double x) {
double r71110 = x;
double r71111 = r71110 * r71110;
double r71112 = r71110 + r71111;
return r71112;
}
double f(double x) {
double r71113 = x;
double r71114 = fma(r71113, r71113, r71113);
return r71114;
}




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