\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r23460425 = x;
double r23460426 = y;
double r23460427 = r23460425 + r23460426;
double r23460428 = r23460427 + r23460425;
return r23460428;
}
double f(double x, double y) {
double r23460429 = 2.0;
double r23460430 = x;
double r23460431 = y;
double r23460432 = fma(r23460429, r23460430, r23460431);
return r23460432;
}




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 2019162 +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 x))
(+ (+ x y) x))