\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r514221 = x;
double r514222 = y;
double r514223 = r514221 + r514222;
double r514224 = r514223 + r514221;
return r514224;
}
double f(double x, double y) {
double r514225 = 2.0;
double r514226 = x;
double r514227 = y;
double r514228 = fma(r514225, r514226, r514227);
return r514228;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
Simplified0
Final simplification0
herbie shell --seed 2020065 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ y (* 2 x))
(+ (+ x y) x))