\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r547783 = x;
double r547784 = y;
double r547785 = r547783 + r547784;
double r547786 = r547785 + r547783;
return r547786;
}
double f(double x, double y) {
double r547787 = 2.0;
double r547788 = x;
double r547789 = r547787 * r547788;
double r547790 = y;
double r547791 = r547789 + r547790;
return r547791;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-sqr-sqrt32.5
rmApplied flip-+55.7
Applied sqrt-div55.9
Applied flip-+55.9
Applied sqrt-div55.9
Applied frac-times55.9
Simplified55.8
Simplified23.1
Taylor expanded around 0 0
Final simplification0
herbie shell --seed 2020045
(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))