\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r412596 = x;
double r412597 = y;
double r412598 = r412596 + r412597;
double r412599 = r412598 + r412596;
return r412599;
}
double f(double x, double y) {
double r412600 = x;
double r412601 = y;
double r412602 = r412600 + r412601;
double r412603 = r412602 + r412600;
return r412603;
}




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