\frac{1}{x + 1} - \frac{1}{x - 1}\begin{array}{l}
\mathbf{if}\;x \le -2101387514886478 \lor \neg \left(x \le 1434.76562703285413\right):\\
\;\;\;\;\frac{-2}{{x}^{6}} - 2 \cdot \left({x}^{\left(-2\right)} + \frac{1}{{x}^{4}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1 \cdot \left(\left(x - 1\right) - \left(x + 1\right)\right)}{x \cdot x - 1 \cdot 1}\\
\end{array}double code(double x) {
return ((1.0 / (x + 1.0)) - (1.0 / (x - 1.0)));
}
double code(double x) {
double VAR;
if (((x <= -2101387514886478.0) || !(x <= 1434.7656270328541))) {
VAR = ((-2.0 / pow(x, 6.0)) - (2.0 * (pow(x, -2.0) + (1.0 / pow(x, 4.0)))));
} else {
VAR = ((1.0 * ((x - 1.0) - (x + 1.0))) / ((x * x) - (1.0 * 1.0)));
}
return VAR;
}



Bits error versus x
Results
if x < -2101387514886478.0 or 1434.7656270328541 < x Initial program 29.7
Taylor expanded around inf 0.7
Simplified0.7
rmApplied pow-flip0.0
if -2101387514886478.0 < x < 1434.7656270328541Initial program 0.6
rmApplied frac-sub0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020092
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))