\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r26318993 = x;
double r26318994 = y;
double r26318995 = r26318993 + r26318994;
double r26318996 = r26318995 + r26318993;
return r26318996;
}
double f(double x, double y) {
double r26318997 = 2.0;
double r26318998 = x;
double r26318999 = y;
double r26319000 = fma(r26318997, r26318998, r26318999);
return r26319000;
}




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