x + \frac{x - y}{2}\left(x + \frac{x}{2}\right) - \frac{y}{2}double f(double x, double y) {
double r743925 = x;
double r743926 = y;
double r743927 = r743925 - r743926;
double r743928 = 2.0;
double r743929 = r743927 / r743928;
double r743930 = r743925 + r743929;
return r743930;
}
double f(double x, double y) {
double r743931 = x;
double r743932 = 2.0;
double r743933 = r743931 / r743932;
double r743934 = r743931 + r743933;
double r743935 = y;
double r743936 = r743935 / r743932;
double r743937 = r743934 - r743936;
return r743937;
}




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