\frac{x}{1 - x}\frac{1}{\frac{1 - x}{x}}double code(double x) {
return ((double) (x / ((double) (1.0 - x))));
}
double code(double x) {
return ((double) (1.0 / ((double) (((double) (1.0 - x)) / x))));
}



Bits error versus x
Results
Initial program 0.0
rmApplied clear-num0.1
Final simplification0.1
herbie shell --seed 2020162
(FPCore (x)
:name "Numeric.Integration.TanhSinh:nonNegative from integration-0.2.1"
:precision binary64
(/ x (- 1.0 x)))