\frac{x}{1 + \sqrt{x + 1}}\begin{array}{l}
\mathbf{if}\;x \le 1.3911727598234371:\\
\;\;\;\;\frac{x}{{1}^{3} + {\left(\sqrt{x + 1}\right)}^{3}} \cdot \left(1 \cdot 1 + \left(\sqrt{x + 1} \cdot \sqrt{x + 1} - 1 \cdot \sqrt{x + 1}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(1 \cdot 1 - x\right) - 1} \cdot \left(1 - \sqrt{x + 1}\right)\\
\end{array}double code(double x) {
return (x / (1.0 + sqrt((x + 1.0))));
}
double code(double x) {
double VAR;
if ((x <= 1.3911727598234371)) {
VAR = ((x / (pow(1.0, 3.0) + pow(sqrt((x + 1.0)), 3.0))) * ((1.0 * 1.0) + ((sqrt((x + 1.0)) * sqrt((x + 1.0))) - (1.0 * sqrt((x + 1.0))))));
} else {
VAR = ((x / (((1.0 * 1.0) - x) - 1.0)) * (1.0 - sqrt((x + 1.0))));
}
return VAR;
}



Bits error versus x
Results
if x < 1.3911727598234371Initial program 0.0
rmApplied flip3-+0.0
Applied associate-/r/0.0
if 1.3911727598234371 < x Initial program 0.5
rmApplied flip-+0.5
Applied associate-/r/0.6
Simplified0.0
Final simplification0.0
herbie shell --seed 2020071 +o rules:numerics
(FPCore (x)
:name "Numeric.Log:$clog1p from log-domain-0.10.2.1, B"
:precision binary64
(/ x (+ 1 (sqrt (+ x 1)))))