\frac{1}{x + 1} - \frac{1}{x - 1}\begin{array}{l}
\mathbf{if}\;x \le -232.32776769692475 \lor \neg \left(x \le 283.61304447385839\right):\\
\;\;\;\;\left(\frac{-2}{{x}^{6}} - \frac{\frac{2}{x}}{x}\right) - \frac{2}{{x}^{4}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{1}{x \cdot x - 1 \cdot 1}, x - 1, -\left(x + 1\right) \cdot \frac{1}{x \cdot x - 1 \cdot 1}\right) + \frac{1}{x \cdot x - 1 \cdot 1} \cdot \left(\left(-\left(x + 1\right)\right) + \left(x + 1\right)\right)\\
\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 <= -232.32776769692475) || !(x <= 283.6130444738584))) {
VAR = (((-2.0 / pow(x, 6.0)) - ((2.0 / x) / x)) - (2.0 / pow(x, 4.0)));
} else {
VAR = (fma((1.0 / ((x * x) - (1.0 * 1.0))), (x - 1.0), -((x + 1.0) * (1.0 / ((x * x) - (1.0 * 1.0))))) + ((1.0 / ((x * x) - (1.0 * 1.0))) * (-(x + 1.0) + (x + 1.0))));
}
return VAR;
}



Bits error versus x
Results
if x < -232.32776769692475 or 283.6130444738584 < x Initial program 29.0
rmApplied flip-+58.5
Applied associate-/r/58.6
Applied fma-neg58.7
Taylor expanded around inf 0.8
Simplified0.1
if -232.32776769692475 < x < 283.6130444738584Initial program 0.0
rmApplied flip--0.0
Applied associate-/r/0.0
Applied flip-+0.0
Applied associate-/r/0.0
Applied prod-diff0.0
Simplified0.0
Final simplification0.1
herbie shell --seed 2020102 +o rules:numerics
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))