\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r386565 = x;
double r386566 = y;
double r386567 = r386565 + r386566;
double r386568 = r386567 + r386565;
return r386568;
}
double f(double x, double y) {
double r386569 = 2.0;
double r386570 = x;
double r386571 = r386569 * r386570;
double r386572 = y;
double r386573 = r386571 + r386572;
return r386573;
}




Bits error versus x




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