\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r17496262 = x;
double r17496263 = y;
double r17496264 = r17496262 + r17496263;
double r17496265 = r17496264 + r17496262;
return r17496265;
}
double f(double x, double y) {
double r17496266 = 2.0;
double r17496267 = x;
double r17496268 = y;
double r17496269 = fma(r17496266, r17496267, r17496268);
return r17496269;
}




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