\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r20725422 = x;
double r20725423 = y;
double r20725424 = r20725422 + r20725423;
double r20725425 = r20725424 + r20725422;
return r20725425;
}
double f(double x, double y) {
double r20725426 = 2.0;
double r20725427 = x;
double r20725428 = y;
double r20725429 = fma(r20725426, r20725427, r20725428);
return r20725429;
}




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