\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r458493 = x;
double r458494 = y;
double r458495 = r458493 + r458494;
double r458496 = r458495 + r458493;
return r458496;
}
double f(double x, double y) {
double r458497 = 2.0;
double r458498 = x;
double r458499 = r458497 * r458498;
double r458500 = y;
double r458501 = r458499 + r458500;
return r458501;
}




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))