x + \frac{x - y}{2}\left(x + \frac{x}{2}\right) - \frac{y}{2}double f(double x, double y) {
double r412004 = x;
double r412005 = y;
double r412006 = r412004 - r412005;
double r412007 = 2.0;
double r412008 = r412006 / r412007;
double r412009 = r412004 + r412008;
return r412009;
}
double f(double x, double y) {
double r412010 = x;
double r412011 = 2.0;
double r412012 = r412010 / r412011;
double r412013 = r412010 + r412012;
double r412014 = y;
double r412015 = r412014 / r412011;
double r412016 = r412013 - r412015;
return r412016;
}




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