\left(x + y\right) + x
y + 2 \cdot x
double f(double x, double y) {
double r24602874 = x;
double r24602875 = y;
double r24602876 = r24602874 + r24602875;
double r24602877 = r24602876 + r24602874;
return r24602877;
}
double f(double x, double y) {
double r24602878 = y;
double r24602879 = 2.0;
double r24602880 = x;
double r24602881 = r24602879 * r24602880;
double r24602882 = r24602878 + r24602881;
return r24602882;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-sqr-sqrt32.1
Taylor expanded around 0 0
Final simplification0
herbie shell --seed 2019168
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:herbie-target
(+ y (* 2 x))
(+ (+ x y) x))