\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r660599 = x;
double r660600 = y;
double r660601 = r660599 + r660600;
double r660602 = r660601 + r660599;
return r660602;
}
double f(double x, double y) {
double r660603 = x;
double r660604 = y;
double r660605 = r660603 + r660604;
double r660606 = r660605 + r660603;
return r660606;
}




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