- Split input into 2 regimes
if x < -3.3367825252779824e+145
Initial program 0.4
\[wj - \frac{wj \cdot e^{wj} - x}{e^{wj} + wj \cdot e^{wj}}\]
Initial simplification0.4
\[\leadsto \frac{(\left(-wj\right) \cdot \left(e^{wj}\right) + x)_*}{(\left(e^{wj}\right) \cdot wj + \left(e^{wj}\right))_*} + wj\]
- Using strategy
rm Applied clear-num0.6
\[\leadsto \color{blue}{\frac{1}{\frac{(\left(e^{wj}\right) \cdot wj + \left(e^{wj}\right))_*}{(\left(-wj\right) \cdot \left(e^{wj}\right) + x)_*}}} + wj\]
if -3.3367825252779824e+145 < x
Initial program 15.6
\[wj - \frac{wj \cdot e^{wj} - x}{e^{wj} + wj \cdot e^{wj}}\]
Initial simplification15.6
\[\leadsto \frac{(\left(-wj\right) \cdot \left(e^{wj}\right) + x)_*}{(\left(e^{wj}\right) \cdot wj + \left(e^{wj}\right))_*} + wj\]
Taylor expanded around 0 2.3
\[\leadsto \color{blue}{\left({wj}^{2} + x\right) - 2 \cdot \left(x \cdot wj\right)}\]
Simplified2.3
\[\leadsto \color{blue}{(wj \cdot \left((x \cdot -2 + wj)_*\right) + x)_*}\]
- Recombined 2 regimes into one program.
Final simplification2.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \le -3.3367825252779824 \cdot 10^{+145}:\\
\;\;\;\;\frac{1}{\frac{(\left(e^{wj}\right) \cdot wj + \left(e^{wj}\right))_*}{(\left(-wj\right) \cdot \left(e^{wj}\right) + x)_*}} + wj\\
\mathbf{else}:\\
\;\;\;\;(wj \cdot \left((x \cdot -2 + wj)_*\right) + x)_*\\
\end{array}\]