x + \frac{x - y}{2}\left(x + \frac{x}{2}\right) - \frac{y}{2}double f(double x, double y) {
double r465932 = x;
double r465933 = y;
double r465934 = r465932 - r465933;
double r465935 = 2.0;
double r465936 = r465934 / r465935;
double r465937 = r465932 + r465936;
return r465937;
}
double f(double x, double y) {
double r465938 = x;
double r465939 = 2.0;
double r465940 = r465938 / r465939;
double r465941 = r465938 + r465940;
double r465942 = y;
double r465943 = r465942 / r465939;
double r465944 = r465941 - r465943;
return r465944;
}




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