- Split input into 2 regimes
if (/ h l) < -1.7775498841371257e+308 or -1.958917333755248e-230 < (/ h l)
Initial program 13.9
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
- Using strategy
rm Applied div-inv13.9
\[\leadsto w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \color{blue}{\left(h \cdot \frac{1}{\ell}\right)}}\]
Applied associate-*r*7.1
\[\leadsto w0 \cdot \sqrt{1 - \color{blue}{\left({\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot h\right) \cdot \frac{1}{\ell}}}\]
- Using strategy
rm Applied unpow27.1
\[\leadsto w0 \cdot \sqrt{1 - \left(\color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)} \cdot h\right) \cdot \frac{1}{\ell}}\]
Applied associate-*l*5.0
\[\leadsto w0 \cdot \sqrt{1 - \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot h\right)\right)} \cdot \frac{1}{\ell}}\]
- Using strategy
rm Applied un-div-inv5.0
\[\leadsto w0 \cdot \sqrt{1 - \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot h\right)}{\ell}}}\]
if -1.7775498841371257e+308 < (/ h l) < -1.958917333755248e-230
Initial program 13.6
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
- Using strategy
rm Applied unpow213.6
\[\leadsto w0 \cdot \sqrt{1 - \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)} \cdot \frac{h}{\ell}}\]
Applied associate-*l*12.4
\[\leadsto w0 \cdot \sqrt{1 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{h}{\ell}\right)}}\]
- Recombined 2 regimes into one program.
Applied simplify8.1
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\frac{h}{\ell} \le -1.7775498841371257 \cdot 10^{+308} \lor \neg \left(\frac{h}{\ell} \le -1.958917333755248 \cdot 10^{-230}\right):\\
\;\;\;\;\sqrt{1 - \frac{\frac{D \cdot M}{d \cdot 2} \cdot \left(\frac{D \cdot M}{d \cdot 2} \cdot h\right)}{\ell}} \cdot w0\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \left(\frac{D \cdot M}{d \cdot 2} \cdot \frac{h}{\ell}\right) \cdot \frac{D \cdot M}{d \cdot 2}}\\
\end{array}}\]