\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r553027 = x;
double r553028 = y;
double r553029 = r553027 + r553028;
double r553030 = r553029 + r553027;
return r553030;
}
double f(double x, double y) {
double r553031 = 2.0;
double r553032 = x;
double r553033 = y;
double r553034 = fma(r553031, r553032, r553033);
return r553034;
}




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