\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r395432 = x;
double r395433 = y;
double r395434 = r395432 + r395433;
double r395435 = r395434 + r395432;
return r395435;
}
double f(double x, double y) {
double r395436 = 2.0;
double r395437 = x;
double r395438 = r395436 * r395437;
double r395439 = y;
double r395440 = r395438 + r395439;
return r395440;
}




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