\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r381026 = x;
double r381027 = y;
double r381028 = r381026 + r381027;
double r381029 = r381028 + r381026;
return r381029;
}
double f(double x, double y) {
double r381030 = x;
double r381031 = y;
double r381032 = r381030 + r381031;
double r381033 = r381032 + r381030;
return r381033;
}




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