\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r22308775 = x;
double r22308776 = y;
double r22308777 = r22308775 + r22308776;
double r22308778 = r22308777 + r22308775;
return r22308778;
}
double f(double x, double y) {
double r22308779 = 2.0;
double r22308780 = x;
double r22308781 = y;
double r22308782 = fma(r22308779, r22308780, r22308781);
return r22308782;
}




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