- Split input into 2 regimes
if x < -0.0016102972301056966
Initial program 0.0
\[\frac{e^{x}}{e^{x} - 1}\]
- Using strategy
rm Applied flip--0.0
\[\leadsto \frac{e^{x}}{\color{blue}{\frac{e^{x} \cdot e^{x} - 1 \cdot 1}{e^{x} + 1}}}\]
Applied associate-/r/0.0
\[\leadsto \color{blue}{\frac{e^{x}}{e^{x} \cdot e^{x} - 1 \cdot 1} \cdot \left(e^{x} + 1\right)}\]
- Using strategy
rm Applied add-cube-cbrt0.0
\[\leadsto \frac{e^{x}}{e^{x} \cdot e^{x} - 1 \cdot 1} \cdot \color{blue}{\left(\left(\sqrt[3]{e^{x} + 1} \cdot \sqrt[3]{e^{x} + 1}\right) \cdot \sqrt[3]{e^{x} + 1}\right)}\]
if -0.0016102972301056966 < x
Initial program 60.0
\[\frac{e^{x}}{e^{x} - 1}\]
Taylor expanded around 0 0.8
\[\leadsto \color{blue}{\frac{1}{12} \cdot x + \left(\frac{1}{x} + \frac{1}{2}\right)}\]
- Recombined 2 regimes into one program.
Final simplification0.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \le -0.0016102972301056966:\\
\;\;\;\;\left(\sqrt[3]{e^{x} + 1} \cdot \left(\sqrt[3]{e^{x} + 1} \cdot \sqrt[3]{e^{x} + 1}\right)\right) \cdot \frac{e^{x}}{e^{x} \cdot e^{x} - 1}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{1}{2} + \frac{1}{x}\right) + x \cdot \frac{1}{12}\\
\end{array}\]