\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r471324 = x;
double r471325 = y;
double r471326 = r471324 + r471325;
double r471327 = r471326 + r471324;
return r471327;
}
double f(double x, double y) {
double r471328 = 2.0;
double r471329 = x;
double r471330 = y;
double r471331 = fma(r471328, r471329, r471330);
return r471331;
}




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