\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r392067 = x;
double r392068 = y;
double r392069 = r392067 + r392068;
double r392070 = r392069 + r392067;
return r392070;
}
double f(double x, double y) {
double r392071 = 2.0;
double r392072 = x;
double r392073 = r392071 * r392072;
double r392074 = y;
double r392075 = r392073 + r392074;
return r392075;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied flip-+47.6
Simplified47.6
Simplified23.5
Taylor expanded around 0 0
Final simplification0
herbie shell --seed 2019208
(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))