\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r485365 = x;
double r485366 = y;
double r485367 = r485365 + r485366;
double r485368 = r485367 + r485365;
return r485368;
}
double f(double x, double y) {
double r485369 = 2.0;
double r485370 = x;
double r485371 = r485369 * r485370;
double r485372 = y;
double r485373 = r485371 + r485372;
return r485373;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-sqr-sqrt32.4
Taylor expanded around 0 0
Final simplification0
herbie shell --seed 2019305
(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))