- Split input into 2 regimes
if (- (/ 2 (+ 1 (exp (* -2 x)))) 1) < -0.00023948684543906009 or 0.002445019681253767 < (- (/ 2 (+ 1 (exp (* -2 x)))) 1)
Initial program 0.0
\[\frac{2}{1 + e^{-2 \cdot x}} - 1\]
- Using strategy
rm Applied add-cube-cbrt0.0
\[\leadsto \color{blue}{\left(\sqrt[3]{\frac{2}{1 + e^{-2 \cdot x}} - 1} \cdot \sqrt[3]{\frac{2}{1 + e^{-2 \cdot x}} - 1}\right) \cdot \sqrt[3]{\frac{2}{1 + e^{-2 \cdot x}} - 1}}\]
if -0.00023948684543906009 < (- (/ 2 (+ 1 (exp (* -2 x)))) 1) < 0.002445019681253767
Initial program 59.3
\[\frac{2}{1 + e^{-2 \cdot x}} - 1\]
Taylor expanded around 0 0.0
\[\leadsto \color{blue}{\left(\frac{2}{15} \cdot {x}^{5} + x\right) - \frac{1}{3} \cdot {x}^{3}}\]
- Recombined 2 regimes into one program.
Applied simplify0.0
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\frac{2}{1 + e^{-2 \cdot x}} - 1 \le -0.00023948684543906009 \lor \neg \left(\frac{2}{1 + e^{-2 \cdot x}} - 1 \le 0.002445019681253767\right):\\
\;\;\;\;\sqrt[3]{\frac{2}{1 + e^{-2 \cdot x}} - 1} \cdot \left(\sqrt[3]{\frac{2}{1 + e^{-2 \cdot x}} - 1} \cdot \sqrt[3]{\frac{2}{1 + e^{-2 \cdot x}} - 1}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{2}{15} \cdot {x}^{5}\right) - \frac{1}{3} \cdot {x}^{3}\\
\end{array}}\]