\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r479563 = x;
double r479564 = y;
double r479565 = r479563 + r479564;
double r479566 = r479565 + r479563;
return r479566;
}
double f(double x, double y) {
double r479567 = 2.0;
double r479568 = x;
double r479569 = r479567 * r479568;
double r479570 = y;
double r479571 = r479569 + r479570;
return r479571;
}




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