- Split input into 2 regimes
if x < -203.61048441999895 or 233.82257986812613 < x
Initial program 29.4
\[\frac{1}{x + 1} - \frac{1}{x - 1}\]
- Using strategy
rm Applied log1p-expm1-u29.4
\[\leadsto \frac{1}{x + 1} - \color{blue}{\log_* (1 + (e^{\frac{1}{x - 1}} - 1)^*)}\]
Taylor expanded around -inf 0.8
\[\leadsto \color{blue}{-\left(2 \cdot \frac{1}{{x}^{4}} + \left(2 \cdot \frac{1}{{x}^{6}} + 2 \cdot \frac{1}{{x}^{2}}\right)\right)}\]
Simplified0.8
\[\leadsto \color{blue}{\frac{-2}{{x}^{6}} + \left(\frac{-2}{{x}^{4}} + \frac{-2}{x \cdot x}\right)}\]
- Using strategy
rm Applied associate-/r*0.1
\[\leadsto \frac{-2}{{x}^{6}} + \left(\frac{-2}{{x}^{4}} + \color{blue}{\frac{\frac{-2}{x}}{x}}\right)\]
if -203.61048441999895 < x < 233.82257986812613
Initial program 0.0
\[\frac{1}{x + 1} - \frac{1}{x - 1}\]
- Using strategy
rm Applied log1p-expm1-u0.0
\[\leadsto \frac{1}{x + 1} - \color{blue}{\log_* (1 + (e^{\frac{1}{x - 1}} - 1)^*)}\]
- Recombined 2 regimes into one program.
Final simplification0.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \le -203.61048441999895 \lor \neg \left(x \le 233.82257986812613\right):\\
\;\;\;\;\left(\frac{\frac{-2}{x}}{x} + \frac{-2}{{x}^{4}}\right) + \frac{-2}{{x}^{6}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{1 + x} - \log_* (1 + (e^{\frac{1}{x - 1}} - 1)^*)\\
\end{array}\]