\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r382460 = x;
double r382461 = y;
double r382462 = r382460 + r382461;
double r382463 = r382462 + r382460;
return r382463;
}
double f(double x, double y) {
double r382464 = x;
double r382465 = y;
double r382466 = r382464 + r382465;
double r382467 = r382466 + r382464;
return r382467;
}




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 2019298
(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))