- Split input into 2 regimes
if (/ h l) < -inf.0 or -4.167633920028256e-291 < (/ h l)
Initial program 13.7
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
Simplified13.7
\[\leadsto \color{blue}{\sqrt{1 - \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right) \cdot \frac{h}{\ell}} \cdot w0}\]
- Using strategy
rm Applied associate-*r/7.0
\[\leadsto \sqrt{1 - \color{blue}{\frac{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right) \cdot h}{\ell}}} \cdot w0\]
- Using strategy
rm Applied associate-*l*5.0
\[\leadsto \sqrt{1 - \frac{\color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot h\right)}}{\ell}} \cdot w0\]
if -inf.0 < (/ h l) < -4.167633920028256e-291
Initial program 13.7
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
Simplified13.7
\[\leadsto \color{blue}{\sqrt{1 - \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right) \cdot \frac{h}{\ell}} \cdot w0}\]
- Using strategy
rm Applied associate-*l*12.0
\[\leadsto \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)}} \cdot w0\]
- Recombined 2 regimes into one program.
Final simplification8.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;\frac{h}{\ell} = -\infty:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{\left(\frac{D \cdot M}{2 \cdot d} \cdot h\right) \cdot \frac{D \cdot M}{2 \cdot d}}{\ell}}\\
\mathbf{elif}\;\frac{h}{\ell} \le -4.167633920028256 \cdot 10^{-291}:\\
\;\;\;\;\sqrt{1 - \frac{D \cdot M}{2 \cdot d} \cdot \left(\frac{h}{\ell} \cdot \frac{D \cdot M}{2 \cdot d}\right)} \cdot w0\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{\left(\frac{D \cdot M}{2 \cdot d} \cdot h\right) \cdot \frac{D \cdot M}{2 \cdot d}}{\ell}}\\
\end{array}\]