- Split input into 2 regimes
if x < -0.00128779396947464419
Initial program 0.0
\[\frac{e^{x} - 1}{x}\]
- Using strategy
rm Applied add-cube-cbrt_binary64_34360.0
\[\leadsto \frac{\color{blue}{\left(\sqrt[3]{e^{x} - 1} \cdot \sqrt[3]{e^{x} - 1}\right) \cdot \sqrt[3]{e^{x} - 1}}}{x}\]
Simplified0.0
\[\leadsto \color{blue}{\frac{\sqrt[3]{e^{x} + -1} \cdot \left(\sqrt[3]{e^{x} + -1} \cdot \sqrt[3]{e^{x} + -1}\right)}{x}}\]
if -0.00128779396947464419 < x
Initial program 60.1
\[\frac{e^{x} - 1}{x}\]
Taylor expanded around 0 0.4
\[\leadsto \color{blue}{0.5 \cdot x + \left(0.16666666666666666 \cdot {x}^{2} + \left(0.041666666666666664 \cdot {x}^{3} + 1\right)\right)}\]
Simplified0.4
\[\leadsto \color{blue}{1 + x \cdot \left(0.5 + x \cdot \left(0.16666666666666666 + x \cdot 0.041666666666666664\right)\right)}\]
Simplified0.4
\[\leadsto \color{blue}{1 + x \cdot \left(0.5 + x \cdot \left(0.16666666666666666 + x \cdot 0.041666666666666664\right)\right)}\]
- Recombined 2 regimes into one program.
Final simplification0.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \leq -0.0012877939694746442:\\
\;\;\;\;\frac{\sqrt[3]{e^{x} + -1} \cdot \left(\sqrt[3]{e^{x} + -1} \cdot \sqrt[3]{e^{x} + -1}\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;1 + x \cdot \left(0.5 + x \cdot \left(0.16666666666666666 + x \cdot 0.041666666666666664\right)\right)\\
\end{array}\]