\frac{x + y}{y + y}\frac{x + y}{y + y}double f(double x, double y) {
double r747182 = x;
double r747183 = y;
double r747184 = r747182 + r747183;
double r747185 = r747183 + r747183;
double r747186 = r747184 / r747185;
return r747186;
}
double f(double x, double y) {
double r747187 = x;
double r747188 = y;
double r747189 = r747187 + r747188;
double r747190 = r747188 + r747188;
double r747191 = r747189 / r747190;
return r747191;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 0.1
Final simplification0.1
herbie shell --seed 2020045
(FPCore (x y)
:name "Data.Random.Distribution.T:$ccdf from random-fu-0.2.6.2"
:precision binary64
:herbie-target
(+ (* 0.5 (/ x y)) 0.5)
(/ (+ x y) (+ y y)))