- Split input into 2 regimes
if x < -0.0011897565413541344
Initial program 0.0
\[\frac{e^{x}}{e^{x} - 1}\]
- Using strategy
rm Applied add-cube-cbrt0.0
\[\leadsto \frac{e^{x}}{\color{blue}{\left(\sqrt[3]{e^{x} - 1} \cdot \sqrt[3]{e^{x} - 1}\right) \cdot \sqrt[3]{e^{x} - 1}}}\]
Applied add-sqr-sqrt0.0
\[\leadsto \frac{\color{blue}{\sqrt{e^{x}} \cdot \sqrt{e^{x}}}}{\left(\sqrt[3]{e^{x} - 1} \cdot \sqrt[3]{e^{x} - 1}\right) \cdot \sqrt[3]{e^{x} - 1}}\]
Applied times-frac0.0
\[\leadsto \color{blue}{\frac{\sqrt{e^{x}}}{\sqrt[3]{e^{x} - 1} \cdot \sqrt[3]{e^{x} - 1}} \cdot \frac{\sqrt{e^{x}}}{\sqrt[3]{e^{x} - 1}}}\]
- Using strategy
rm Applied add-log-exp0.0
\[\leadsto \frac{\sqrt{e^{x}}}{\sqrt[3]{e^{x} - 1} \cdot \sqrt[3]{\color{blue}{\log \left(e^{e^{x} - 1}\right)}}} \cdot \frac{\sqrt{e^{x}}}{\sqrt[3]{e^{x} - 1}}\]
- Using strategy
rm Applied flip--0.0
\[\leadsto \frac{\sqrt{e^{x}}}{\sqrt[3]{\color{blue}{\frac{e^{x} \cdot e^{x} - 1 \cdot 1}{e^{x} + 1}}} \cdot \sqrt[3]{\log \left(e^{e^{x} - 1}\right)}} \cdot \frac{\sqrt{e^{x}}}{\sqrt[3]{e^{x} - 1}}\]
if -0.0011897565413541344 < x
Initial program 60.2
\[\frac{e^{x}}{e^{x} - 1}\]
Taylor expanded around 0 0.9
\[\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.0011897565413541344:\\
\;\;\;\;\frac{\sqrt{e^{x}}}{\sqrt[3]{\frac{e^{x} \cdot e^{x} - 1}{e^{x} + 1}} \cdot \sqrt[3]{\log \left(e^{e^{x} - 1}\right)}} \cdot \frac{\sqrt{e^{x}}}{\sqrt[3]{e^{x} - 1}}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{1}{2} + \frac{1}{x}\right) + \frac{1}{12} \cdot x\\
\end{array}\]