\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r415382 = x;
double r415383 = y;
double r415384 = r415382 + r415383;
double r415385 = r415384 + r415382;
return r415385;
}
double f(double x, double y) {
double r415386 = 2.0;
double r415387 = x;
double r415388 = r415386 * r415387;
double r415389 = y;
double r415390 = r415388 + r415389;
return r415390;
}




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
Simplified32.5
Simplified32.5
rmApplied *-un-lft-identity32.5
Applied sqrt-prod32.5
Applied *-un-lft-identity32.5
Applied sqrt-prod32.5
Applied swap-sqr32.5
Simplified32.5
Simplified0
Final simplification0
herbie shell --seed 2019326
(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))