\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r355486 = x;
double r355487 = y;
double r355488 = r355486 + r355487;
double r355489 = r355488 + r355486;
return r355489;
}
double f(double x, double y) {
double r355490 = 2.0;
double r355491 = x;
double r355492 = r355490 * r355491;
double r355493 = y;
double r355494 = r355492 + r355493;
return r355494;
}




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
rmApplied add-sqr-sqrt32.4
Simplified32.4
Simplified32.4
rmApplied pow1/232.4
Applied pow1/232.4
Applied pow-prod-up0
Simplified0
Final simplification0
herbie shell --seed 2019323
(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))