\left(x + y\right) + x
\left(x + x\right) + y
double f(double x, double y) {
double r26309877 = x;
double r26309878 = y;
double r26309879 = r26309877 + r26309878;
double r26309880 = r26309879 + r26309877;
return r26309880;
}
double f(double x, double y) {
double r26309881 = x;
double r26309882 = r26309881 + r26309881;
double r26309883 = y;
double r26309884 = r26309882 + r26309883;
return r26309884;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-sqr-sqrt32.3
Taylor expanded around 0 0
Simplified0
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.0 x))
(+ (+ x y) x))