\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r25639962 = x;
double r25639963 = y;
double r25639964 = r25639962 + r25639963;
double r25639965 = r25639964 + r25639962;
return r25639965;
}
double f(double x, double y) {
double r25639966 = 2.0;
double r25639967 = x;
double r25639968 = y;
double r25639969 = fma(r25639966, r25639967, r25639968);
return r25639969;
}




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