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



Bits error versus x
Results
Initial program 0.2
rmApplied clear-num0.3
Final simplification0.3
herbie shell --seed 2020057 +o rules:numerics
(FPCore (x)
:name "Numeric.Log:$clog1p from log-domain-0.10.2.1, B"
:precision binary64
(/ x (+ 1 (sqrt (+ x 1)))))