\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r325595 = x;
double r325596 = y;
double r325597 = r325595 + r325596;
double r325598 = r325597 + r325595;
return r325598;
}
double f(double x, double y) {
double r325599 = 2.0;
double r325600 = x;
double r325601 = r325599 * r325600;
double r325602 = y;
double r325603 = r325601 + r325602;
return r325603;
}




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 pow1/232.5
Applied pow1/232.5
Applied pow-prod-up0
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))