\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r636025 = x;
double r636026 = y;
double r636027 = r636025 + r636026;
double r636028 = r636027 + r636025;
return r636028;
}
double f(double x, double y) {
double r636029 = x;
double r636030 = y;
double r636031 = r636029 + r636030;
double r636032 = r636031 + r636029;
return r636032;
}




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