Initial program 14.7
\[\cos \left(\frac{K \cdot \left(m + n\right)}{2} - M\right) \cdot e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}\]
Taylor expanded around 0 1.2
\[\leadsto \color{blue}{1} \cdot e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}\]
- Using strategy
rm Applied add-cube-cbrt1.2
\[\leadsto 1 \cdot \color{blue}{\left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right)}\]
- Using strategy
rm Applied add-cube-cbrt1.2
\[\leadsto 1 \cdot \left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \sqrt[3]{\color{blue}{\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}}\right)\]
Applied cbrt-prod1.2
\[\leadsto 1 \cdot \left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \color{blue}{\left(\sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}} \cdot \sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}\right)}\right)\]
- Using strategy
rm Applied add-cube-cbrt1.2
\[\leadsto 1 \cdot \left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \color{blue}{\left(\sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}\right) \cdot \sqrt[3]{\ell - \left|m - n\right|}}}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}} \cdot \sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}\right)\right)\]
Applied add-cube-cbrt1.2
\[\leadsto 1 \cdot \left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{e^{\left(-\color{blue}{\left(\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}} \cdot \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}\right) \cdot \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}}\right) - \left(\sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}\right) \cdot \sqrt[3]{\ell - \left|m - n\right|}}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}} \cdot \sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}\right)\right)\]
Applied distribute-lft-neg-in1.2
\[\leadsto 1 \cdot \left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{e^{\color{blue}{\left(-\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}} \cdot \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}\right) \cdot \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}} - \left(\sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}\right) \cdot \sqrt[3]{\ell - \left|m - n\right|}}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}} \cdot \sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}\right)\right)\]
Applied prod-diff1.2
\[\leadsto 1 \cdot \left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{e^{\color{blue}{\mathsf{fma}\left(-\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}} \cdot \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, -\sqrt[3]{\ell - \left|m - n\right|} \cdot \left(\sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}\right)\right) + \mathsf{fma}\left(-\sqrt[3]{\ell - \left|m - n\right|}, \sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}, \sqrt[3]{\ell - \left|m - n\right|} \cdot \left(\sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}\right)\right)}}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}} \cdot \sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}\right)\right)\]
Applied exp-sum28.2
\[\leadsto 1 \cdot \left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{\color{blue}{e^{\mathsf{fma}\left(-\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}} \cdot \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, -\sqrt[3]{\ell - \left|m - n\right|} \cdot \left(\sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}\right)\right)} \cdot e^{\mathsf{fma}\left(-\sqrt[3]{\ell - \left|m - n\right|}, \sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}, \sqrt[3]{\ell - \left|m - n\right|} \cdot \left(\sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}\right)\right)}}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}} \cdot \sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}\right)\right)\]
Simplified28.2
\[\leadsto 1 \cdot \left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{\color{blue}{e^{\mathsf{fma}\left(\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}} \cdot \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, -\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, -\left(\ell - \left|m - n\right|\right)\right)}} \cdot e^{\mathsf{fma}\left(-\sqrt[3]{\ell - \left|m - n\right|}, \sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}, \sqrt[3]{\ell - \left|m - n\right|} \cdot \left(\sqrt[3]{\ell - \left|m - n\right|} \cdot \sqrt[3]{\ell - \left|m - n\right|}\right)\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}} \cdot \sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}\right)\right)\]
Simplified1.2
\[\leadsto 1 \cdot \left(\left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{e^{\mathsf{fma}\left(\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}} \cdot \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, -\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, -\left(\ell - \left|m - n\right|\right)\right)} \cdot \color{blue}{1}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}} \cdot \sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}\right)\right)\]
Final simplification1.2
\[\leadsto \left(\sqrt[3]{\sqrt[3]{e^{\mathsf{fma}\left(\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}} \cdot \sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, -\sqrt[3]{{\left(\frac{m + n}{2} - M\right)}^{2}}, -\left(\ell - \left|m - n\right|\right)\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}} \cdot \sqrt[3]{\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}}\right) \cdot \left(\sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}} \cdot \sqrt[3]{e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}}\right)\]