\sqrt{x - 1} \cdot \sqrt{x}\begin{array}{l}
\mathbf{if}\;x \le 67840.3960161231953:\\
\;\;\;\;\sqrt{\left(x - 1\right) \cdot x}\\
\mathbf{else}:\\
\;\;\;\;x - \left(0.5 + 0.125 \cdot \frac{1}{x}\right)\\
\end{array}double code(double x) {
return (sqrt((x - 1.0)) * sqrt(x));
}
double code(double x) {
double VAR;
if ((x <= 67840.3960161232)) {
VAR = sqrt(((x - 1.0) * x));
} else {
VAR = (x - (0.5 + (0.125 * (1.0 / x))));
}
return VAR;
}



Bits error versus x
Results
if x < 67840.3960161232Initial program 0.3
rmApplied sqrt-unprod0.1
if 67840.3960161232 < x Initial program 0.5
Taylor expanded around inf 0.0
Final simplification0.0
herbie shell --seed 2020105
(FPCore (x)
:name "sqrt times"
:precision binary64
(* (sqrt (- x 1)) (sqrt x)))