- Split input into 2 regimes
if x < -0.0018360865456444673
Initial program 0.0
\[\frac{e^{x}}{e^{x} - 1}\]
- Using strategy
rm Applied add-cbrt-cube0.0
\[\leadsto \frac{e^{x}}{\color{blue}{\sqrt[3]{\left(\left(e^{x} - 1\right) \cdot \left(e^{x} - 1\right)\right) \cdot \left(e^{x} - 1\right)}}}\]
if -0.0018360865456444673 < x
Initial program 60.3
\[\frac{e^{x}}{e^{x} - 1}\]
Taylor expanded around 0 1.0
\[\leadsto \color{blue}{\frac{1}{12} \cdot x + \left(\frac{1}{x} + \frac{1}{2}\right)}\]
- Recombined 2 regimes into one program.
Final simplification0.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \le -0.0018360865456444673:\\
\;\;\;\;\frac{e^{x}}{\sqrt[3]{\left(e^{x} - 1\right) \cdot \left(\left(e^{x} - 1\right) \cdot \left(e^{x} - 1\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{12} + \left(\frac{1}{x} + \frac{1}{2}\right)\\
\end{array}\]