\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r38526787 = x;
double r38526788 = y;
double r38526789 = r38526787 + r38526788;
double r38526790 = r38526789 + r38526787;
return r38526790;
}
double f(double x, double y) {
double r38526791 = 2.0;
double r38526792 = x;
double r38526793 = r38526791 * r38526792;
double r38526794 = y;
double r38526795 = r38526793 + r38526794;
return r38526795;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied flip3-+42.7
Simplified42.6
Taylor expanded around 0 0
Final simplification0
herbie shell --seed 2019174
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:herbie-target
(+ y (* 2.0 x))
(+ (+ x y) x))