- Split input into 2 regimes
if x < -1.3381011091856478e+154 or 12259358.240822887 < x
Initial program 39.9
\[\frac{x}{x \cdot x + 1}\]
Taylor expanded around -inf 0
\[\leadsto \color{blue}{\left(\frac{1}{{x}^{5}} + \frac{1}{x}\right) - \frac{1}{{x}^{3}}}\]
Simplified0
\[\leadsto \color{blue}{\left(\frac{1}{x} + \frac{1}{{x}^{5}}\right) - \frac{1}{\left(x \cdot x\right) \cdot x}}\]
if -1.3381011091856478e+154 < x < 12259358.240822887
Initial program 0.1
\[\frac{x}{x \cdot x + 1}\]
- Using strategy
rm Applied add-sqr-sqrt0.1
\[\leadsto \frac{x}{\color{blue}{\sqrt{x \cdot x + 1} \cdot \sqrt{x \cdot x + 1}}}\]
Applied associate-/r*0.0
\[\leadsto \color{blue}{\frac{\frac{x}{\sqrt{x \cdot x + 1}}}{\sqrt{x \cdot x + 1}}}\]
- Recombined 2 regimes into one program.
Final simplification0.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \le -1.3381011091856478 \cdot 10^{+154}:\\
\;\;\;\;\left(\frac{1}{{x}^{5}} + \frac{1}{x}\right) - \frac{1}{\left(x \cdot x\right) \cdot x}\\
\mathbf{elif}\;x \le 12259358.240822887:\\
\;\;\;\;\frac{\frac{x}{\sqrt{1 + x \cdot x}}}{\sqrt{1 + x \cdot x}}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{1}{{x}^{5}} + \frac{1}{x}\right) - \frac{1}{\left(x \cdot x\right) \cdot x}\\
\end{array}\]