- Split input into 2 regimes
if wj < 4.713924537321262e-08
Initial program 13.5
\[wj - \frac{wj \cdot e^{wj} - x}{e^{wj} + wj \cdot e^{wj}}\]
- Using strategy
rm Applied div-sub13.5
\[\leadsto wj - \color{blue}{\left(\frac{wj \cdot e^{wj}}{e^{wj} + wj \cdot e^{wj}} - \frac{x}{e^{wj} + wj \cdot e^{wj}}\right)}\]
Simplified13.5
\[\leadsto wj - \left(\color{blue}{\frac{wj}{1 + wj}} - \frac{x}{e^{wj} + wj \cdot e^{wj}}\right)\]
- Using strategy
rm Applied sub-neg13.5
\[\leadsto wj - \color{blue}{\left(\frac{wj}{1 + wj} + \left(-\frac{x}{e^{wj} + wj \cdot e^{wj}}\right)\right)}\]
Applied associate--r+7.0
\[\leadsto \color{blue}{\left(wj - \frac{wj}{1 + wj}\right) - \left(-\frac{x}{e^{wj} + wj \cdot e^{wj}}\right)}\]
Simplified7.0
\[\leadsto \left(wj - \frac{wj}{1 + wj}\right) - \color{blue}{\frac{-x}{(wj \cdot \left(e^{wj}\right) + \left(e^{wj}\right))_*}}\]
Taylor expanded around 0 0.2
\[\leadsto \color{blue}{\left(\left({wj}^{2} + {wj}^{4}\right) - {wj}^{3}\right)} - \frac{-x}{(wj \cdot \left(e^{wj}\right) + \left(e^{wj}\right))_*}\]
Simplified0.2
\[\leadsto \color{blue}{(\left(1 - wj\right) \cdot \left(wj \cdot wj\right) + \left({wj}^{4}\right))_*} - \frac{-x}{(wj \cdot \left(e^{wj}\right) + \left(e^{wj}\right))_*}\]
if 4.713924537321262e-08 < wj
Initial program 23.9
\[wj - \frac{wj \cdot e^{wj} - x}{e^{wj} + wj \cdot e^{wj}}\]
- Using strategy
rm Applied div-sub23.9
\[\leadsto wj - \color{blue}{\left(\frac{wj \cdot e^{wj}}{e^{wj} + wj \cdot e^{wj}} - \frac{x}{e^{wj} + wj \cdot e^{wj}}\right)}\]
Simplified1.7
\[\leadsto wj - \left(\color{blue}{\frac{wj}{1 + wj}} - \frac{x}{e^{wj} + wj \cdot e^{wj}}\right)\]
- Using strategy
rm Applied sub-neg1.7
\[\leadsto wj - \color{blue}{\left(\frac{wj}{1 + wj} + \left(-\frac{x}{e^{wj} + wj \cdot e^{wj}}\right)\right)}\]
Applied associate--r+1.7
\[\leadsto \color{blue}{\left(wj - \frac{wj}{1 + wj}\right) - \left(-\frac{x}{e^{wj} + wj \cdot e^{wj}}\right)}\]
Simplified1.7
\[\leadsto \left(wj - \frac{wj}{1 + wj}\right) - \color{blue}{\frac{-x}{(wj \cdot \left(e^{wj}\right) + \left(e^{wj}\right))_*}}\]
- Recombined 2 regimes into one program.
Final simplification0.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;wj \le 4.713924537321262 \cdot 10^{-08}:\\
\;\;\;\;(\left(1 - wj\right) \cdot \left(wj \cdot wj\right) + \left({wj}^{4}\right))_* - \frac{-x}{(wj \cdot \left(e^{wj}\right) + \left(e^{wj}\right))_*}\\
\mathbf{else}:\\
\;\;\;\;\left(wj - \frac{wj}{1 + wj}\right) - \frac{-x}{(wj \cdot \left(e^{wj}\right) + \left(e^{wj}\right))_*}\\
\end{array}\]