x + \frac{x - y}{2}\left(x + \frac{x}{2}\right) - \frac{y}{2}double f(double x, double y) {
double r719243 = x;
double r719244 = y;
double r719245 = r719243 - r719244;
double r719246 = 2.0;
double r719247 = r719245 / r719246;
double r719248 = r719243 + r719247;
return r719248;
}
double f(double x, double y) {
double r719249 = x;
double r719250 = 2.0;
double r719251 = r719249 / r719250;
double r719252 = r719249 + r719251;
double r719253 = y;
double r719254 = r719253 / r719250;
double r719255 = r719252 - r719254;
return r719255;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 0.1
rmApplied div-sub0.1
Applied associate-+r-0.1
Final simplification0.1
herbie shell --seed 2020021
(FPCore (x y)
:name "Graphics.Rendering.Chart.Axis.Types:hBufferRect from Chart-1.5.3"
:precision binary64
:herbie-target
(- (* 1.5 x) (* 0.5 y))
(+ x (/ (- x y) 2)))