\left(x + y\right) + x
x + \left(y + x\right)
double f(double x, double y) {
double r426476 = x;
double r426477 = y;
double r426478 = r426476 + r426477;
double r426479 = r426478 + r426476;
return r426479;
}
double f(double x, double y) {
double r426480 = x;
double r426481 = y;
double r426482 = r426481 + r426480;
double r426483 = r426480 + r426482;
return r426483;
}




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 2019194
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:herbie-target
(+ y (* 2.0 x))
(+ (+ x y) x))