\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r594243 = x;
double r594244 = y;
double r594245 = r594243 + r594244;
double r594246 = r594245 + r594243;
return r594246;
}
double f(double x, double y) {
double r594247 = 2.0;
double r594248 = x;
double r594249 = r594247 * r594248;
double r594250 = y;
double r594251 = r594249 + r594250;
return r594251;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-cube-cbrt1.3
rmApplied pow11.3
Applied pow11.3
Applied pow-prod-down1.3
Simplified32.5
Taylor expanded around 0 0
Final simplification0
herbie shell --seed 2019356
(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))