- Split input into 2 regimes
if (fma x x x) < 3.8794720122657505e-08
Initial program 0.0
\[\frac{1}{x + 1} - \frac{1}{x}\]
- Using strategy
rm Applied add-cube-cbrt0.0
\[\leadsto \frac{1}{\color{blue}{\left(\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1}\right) \cdot \sqrt[3]{x + 1}}} - \frac{1}{x}\]
Applied associate-/r*0.0
\[\leadsto \color{blue}{\frac{\frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1}}}{\sqrt[3]{x + 1}}} - \frac{1}{x}\]
if 3.8794720122657505e-08 < (fma x x x)
Initial program 28.4
\[\frac{1}{x + 1} - \frac{1}{x}\]
- Using strategy
rm Applied frac-sub27.0
\[\leadsto \color{blue}{\frac{1 \cdot x - \left(x + 1\right) \cdot 1}{\left(x + 1\right) \cdot x}}\]
Applied simplify27.0
\[\leadsto \frac{\color{blue}{x - \left(x + 1\right)}}{\left(x + 1\right) \cdot x}\]
Applied simplify27.0
\[\leadsto \frac{x - \left(x + 1\right)}{\color{blue}{(x \cdot x + x)_*}}\]
- Using strategy
rm Applied add-sqr-sqrt27.0
\[\leadsto \frac{x - \left(x + 1\right)}{\color{blue}{\sqrt{(x \cdot x + x)_*} \cdot \sqrt{(x \cdot x + x)_*}}}\]
Applied associate-/r*27.0
\[\leadsto \color{blue}{\frac{\frac{x - \left(x + 1\right)}{\sqrt{(x \cdot x + x)_*}}}{\sqrt{(x \cdot x + x)_*}}}\]
Applied simplify0.8
\[\leadsto \frac{\color{blue}{\frac{0 - 1}{\sqrt{(x \cdot x + x)_*}}}}{\sqrt{(x \cdot x + x)_*}}\]
- Recombined 2 regimes into one program.
Applied simplify0.4
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;(x \cdot x + x)_* \le 3.8794720122657505 \cdot 10^{-08}:\\
\;\;\;\;\frac{\frac{1}{\sqrt[3]{1 + x} \cdot \sqrt[3]{1 + x}}}{\sqrt[3]{1 + x}} - \frac{1}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-1}{\sqrt{(x \cdot x + x)_*}}}{\sqrt{(x \cdot x + x)_*}}\\
\end{array}}\]