\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r23010834 = x;
double r23010835 = y;
double r23010836 = r23010834 + r23010835;
double r23010837 = r23010836 + r23010834;
return r23010837;
}
double f(double x, double y) {
double r23010838 = 2.0;
double r23010839 = x;
double r23010840 = y;
double r23010841 = fma(r23010838, r23010839, r23010840);
return r23010841;
}




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 2019169 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:herbie-target
(+ y (* 2.0 x))
(+ (+ x y) x))