\left(x + y\right) + x
y + 2 \cdot x
double f(double x, double y) {
double r29681415 = x;
double r29681416 = y;
double r29681417 = r29681415 + r29681416;
double r29681418 = r29681417 + r29681415;
return r29681418;
}
double f(double x, double y) {
double r29681419 = y;
double r29681420 = 2.0;
double r29681421 = x;
double r29681422 = r29681420 * r29681421;
double r29681423 = r29681419 + r29681422;
return r29681423;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-sqr-sqrt31.8
Taylor expanded around 0 0
Final simplification0
herbie shell --seed 2019171
(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))