\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r317593 = x;
double r317594 = y;
double r317595 = r317593 + r317594;
double r317596 = r317595 + r317593;
return r317596;
}
double f(double x, double y) {
double r317597 = x;
double r317598 = y;
double r317599 = r317597 + r317598;
double r317600 = r317599 + r317597;
return r317600;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0.0 |
Initial program 0.0
Final simplification0.0
herbie shell --seed 2019304
(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))