\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r567388 = x;
double r567389 = y;
double r567390 = r567388 + r567389;
double r567391 = r567390 + r567388;
return r567391;
}
double f(double x, double y) {
double r567392 = 2.0;
double r567393 = x;
double r567394 = r567392 * r567393;
double r567395 = y;
double r567396 = r567394 + r567395;
return r567396;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-cbrt-cube42.2
Simplified42.2
Taylor expanded around 0 0
Final simplification0
herbie shell --seed 2019350
(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))