x + \frac{x - y}{2}x + \frac{x - y}{2}double f(double x, double y) {
double r674729 = x;
double r674730 = y;
double r674731 = r674729 - r674730;
double r674732 = 2.0;
double r674733 = r674731 / r674732;
double r674734 = r674729 + r674733;
return r674734;
}
double f(double x, double y) {
double r674735 = x;
double r674736 = y;
double r674737 = r674735 - r674736;
double r674738 = 2.0;
double r674739 = r674737 / r674738;
double r674740 = r674735 + r674739;
return r674740;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 0.1
Final simplification0.1
herbie shell --seed 2019362
(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)))