\frac{x + y}{y + y}\frac{x + y}{y + y}double f(double x, double y) {
double r762810 = x;
double r762811 = y;
double r762812 = r762810 + r762811;
double r762813 = r762811 + r762811;
double r762814 = r762812 / r762813;
return r762814;
}
double f(double x, double y) {
double r762815 = x;
double r762816 = y;
double r762817 = r762815 + r762816;
double r762818 = r762816 + r762816;
double r762819 = r762817 / r762818;
return r762819;
}




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