\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r1263172 = x;
double r1263173 = y;
double r1263174 = r1263172 + r1263173;
double r1263175 = r1263174 + r1263172;
return r1263175;
}
double f(double x, double y) {
double r1263176 = 2.0;
double r1263177 = x;
double r1263178 = y;
double r1263179 = fma(r1263176, r1263177, r1263178);
return r1263179;
}




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 2020034 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ y (* 2 x))
(+ (+ x y) x))