\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r585144 = x;
double r585145 = y;
double r585146 = r585144 + r585145;
double r585147 = r585146 + r585144;
return r585147;
}
double f(double x, double y) {
double r585148 = x;
double r585149 = y;
double r585150 = r585148 + r585149;
double r585151 = r585150 + r585148;
return r585151;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0.0 |
Initial program 0.0
Final simplification0.0
herbie shell --seed 2020062
(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))