\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r432145 = x;
double r432146 = y;
double r432147 = r432145 + r432146;
double r432148 = r432147 + r432145;
return r432148;
}
double f(double x, double y) {
double r432149 = 2.0;
double r432150 = x;
double r432151 = r432149 * r432150;
double r432152 = y;
double r432153 = r432151 + r432152;
return r432153;
}




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 *-un-lft-identity32.4
Applied sqrt-prod32.4
Applied associate-*l*32.4
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))