\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r531958 = x;
double r531959 = y;
double r531960 = r531958 + r531959;
double r531961 = r531960 + r531958;
return r531961;
}
double f(double x, double y) {
double r531962 = 2.0;
double r531963 = x;
double r531964 = y;
double r531965 = fma(r531962, r531963, r531964);
return r531965;
}




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