- Split input into 3 regimes
if (/ h l) < -inf.0
Initial program 61.8
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
- Using strategy
rm Applied associate-*r/25.4
\[\leadsto w0 \cdot \sqrt{1 - \color{blue}{\frac{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot h}{\ell}}}\]
- Using strategy
rm Applied unpow225.4
\[\leadsto w0 \cdot \sqrt{1 - \frac{\color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)} \cdot h}{\ell}}\]
Applied associate-*l*21.3
\[\leadsto w0 \cdot \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}}\]
- Using strategy
rm Applied add-cube-cbrt21.4
\[\leadsto w0 \cdot \sqrt{1 - \color{blue}{\left(\sqrt[3]{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot h\right)}{\ell}} \cdot \sqrt[3]{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot h\right)}{\ell}}\right) \cdot \sqrt[3]{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot h\right)}{\ell}}}}\]
if -inf.0 < (/ h l) < 657036237264.0234
Initial program 10.8
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
- Using strategy
rm Applied unpow210.8
\[\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*9.1
\[\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)}}\]
if 657036237264.0234 < (/ h l)
Initial program 11.8
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
- Using strategy
rm Applied associate-*r/0.1
\[\leadsto w0 \cdot \sqrt{1 - \color{blue}{\frac{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot h}{\ell}}}\]
- Using strategy
rm Applied add-cbrt-cube0.1
\[\leadsto w0 \cdot \color{blue}{\sqrt[3]{\left(\sqrt{1 - \frac{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot h}{\ell}} \cdot \sqrt{1 - \frac{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot h}{\ell}}\right) \cdot \sqrt{1 - \frac{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot h}{\ell}}}}\]
- Recombined 3 regimes into one program.
Final simplification8.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;\frac{h}{\ell} = -\infty:\\
\;\;\;\;w0 \cdot \sqrt{1 - \left(\sqrt[3]{\frac{\left(\frac{M \cdot D}{2 \cdot d} \cdot h\right) \cdot \frac{M \cdot D}{2 \cdot d}}{\ell}} \cdot \sqrt[3]{\frac{\left(\frac{M \cdot D}{2 \cdot d} \cdot h\right) \cdot \frac{M \cdot D}{2 \cdot d}}{\ell}}\right) \cdot \sqrt[3]{\frac{\left(\frac{M \cdot D}{2 \cdot d} \cdot h\right) \cdot \frac{M \cdot D}{2 \cdot d}}{\ell}}}\\
\mathbf{elif}\;\frac{h}{\ell} \le 657036237264.0234:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{h}{\ell} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt[3]{\left(\sqrt{1 - \frac{h \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}{\ell}} \cdot \sqrt{1 - \frac{h \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}{\ell}}\right) \cdot \sqrt{1 - \frac{h \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}{\ell}}}\\
\end{array}\]