\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r21460807 = x;
double r21460808 = y;
double r21460809 = r21460807 + r21460808;
double r21460810 = r21460809 + r21460807;
return r21460810;
}
double f(double x, double y) {
double r21460811 = 2.0;
double r21460812 = x;
double r21460813 = y;
double r21460814 = fma(r21460811, r21460812, r21460813);
return r21460814;
}




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