x + \frac{x - y}{2}x + \frac{x - y}{2}double f(double x, double y) {
double r661790 = x;
double r661791 = y;
double r661792 = r661790 - r661791;
double r661793 = 2.0;
double r661794 = r661792 / r661793;
double r661795 = r661790 + r661794;
return r661795;
}
double f(double x, double y) {
double r661796 = x;
double r661797 = y;
double r661798 = r661796 - r661797;
double r661799 = 2.0;
double r661800 = r661798 / r661799;
double r661801 = r661796 + r661800;
return r661801;
}




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 2020047 +o rules:numerics
(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)))