\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r12110325 = x;
double r12110326 = y;
double r12110327 = r12110325 + r12110326;
double r12110328 = r12110327 + r12110325;
return r12110328;
}
double f(double x, double y) {
double r12110329 = 2.0;
double r12110330 = x;
double r12110331 = y;
double r12110332 = fma(r12110329, r12110330, r12110331);
return r12110332;
}




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