\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r445321 = x;
double r445322 = y;
double r445323 = r445321 + r445322;
double r445324 = r445323 + r445321;
return r445324;
}
double f(double x, double y) {
double r445325 = 2.0;
double r445326 = x;
double r445327 = r445325 * r445326;
double r445328 = y;
double r445329 = r445327 + r445328;
return r445329;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-sqr-sqrt32.7
rmApplied add-sqr-sqrt32.7
Simplified32.7
Simplified32.7
rmApplied pow1/232.7
Applied pow1/232.7
Applied pow-prod-up0
Simplified0
Final simplification0
herbie shell --seed 2019303
(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))