\frac{1}{x + 1} - \frac{1}{x}\begin{array}{l}
\mathbf{if}\;x \le -6935920363808791.0:\\
\;\;\;\;\frac{1}{\left(x \cdot x\right) \cdot x} - \mathsf{fma}\left(\frac{1}{x \cdot x}, \frac{1}{x \cdot x}, {x}^{-2}\right)\\
\mathbf{elif}\;x \le 229105.08111828775:\\
\;\;\;\;\frac{x - \left(1 + x\right)}{x \cdot \left(1 + x\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\left(x \cdot x\right) \cdot x} - \mathsf{fma}\left(\frac{1}{x \cdot x}, \frac{1}{x \cdot x}, {x}^{-2}\right)\\
\end{array}double f(double x) {
double r1806648 = 1.0;
double r1806649 = x;
double r1806650 = r1806649 + r1806648;
double r1806651 = r1806648 / r1806650;
double r1806652 = r1806648 / r1806649;
double r1806653 = r1806651 - r1806652;
return r1806653;
}
double f(double x) {
double r1806654 = x;
double r1806655 = -6935920363808791.0;
bool r1806656 = r1806654 <= r1806655;
double r1806657 = 1.0;
double r1806658 = r1806654 * r1806654;
double r1806659 = r1806658 * r1806654;
double r1806660 = r1806657 / r1806659;
double r1806661 = r1806657 / r1806658;
double r1806662 = -2.0;
double r1806663 = pow(r1806654, r1806662);
double r1806664 = fma(r1806661, r1806661, r1806663);
double r1806665 = r1806660 - r1806664;
double r1806666 = 229105.08111828775;
bool r1806667 = r1806654 <= r1806666;
double r1806668 = r1806657 + r1806654;
double r1806669 = r1806654 - r1806668;
double r1806670 = r1806654 * r1806668;
double r1806671 = r1806669 / r1806670;
double r1806672 = r1806667 ? r1806671 : r1806665;
double r1806673 = r1806656 ? r1806665 : r1806672;
return r1806673;
}



Bits error versus x
if x < -6935920363808791.0 or 229105.08111828775 < x Initial program 28.7
rmApplied frac-sub28.0
Simplified28.0
Simplified28.0
Taylor expanded around inf 0.8
Simplified0.8
rmApplied pow10.8
Applied pow10.8
Applied pow-prod-up0.8
Applied pow-flip0.0
Simplified0.0
if -6935920363808791.0 < x < 229105.08111828775Initial program 0.7
rmApplied frac-sub0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019163 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))