\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r326872 = x;
double r326873 = y;
double r326874 = r326872 + r326873;
double r326875 = r326874 + r326872;
return r326875;
}
double f(double x, double y) {
double r326876 = 2.0;
double r326877 = x;
double r326878 = r326876 * r326877;
double r326879 = y;
double r326880 = r326878 + r326879;
return r326880;
}




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 add-sqr-sqrt32.5
Applied sqrt-prod32.6
Taylor expanded around 0 0
Final simplification0
herbie shell --seed 2019294
(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))