x + \frac{x - y}{2}x + \frac{x - y}{2}double f(double x, double y) {
double r727606 = x;
double r727607 = y;
double r727608 = r727606 - r727607;
double r727609 = 2.0;
double r727610 = r727608 / r727609;
double r727611 = r727606 + r727610;
return r727611;
}
double f(double x, double y) {
double r727612 = x;
double r727613 = y;
double r727614 = r727612 - r727613;
double r727615 = 2.0;
double r727616 = r727614 / r727615;
double r727617 = r727612 + r727616;
return r727617;
}




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 2020036
(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)))