Initial program 13.4
\[\sin \left(\left(uy \cdot 2\right) \cdot \pi\right) \cdot \sqrt{1 - \left(\left(1 - ux\right) + ux \cdot maxCos\right) \cdot \left(\left(1 - ux\right) + ux \cdot maxCos\right)}
\]
Taylor expanded in ux around 0 0.5
\[\leadsto \sin \left(\left(uy \cdot 2\right) \cdot \pi\right) \cdot \sqrt{\color{blue}{\left(2 \cdot \left(maxCos \cdot {ux}^{2}\right) + 2 \cdot ux\right) - \left({ux}^{2} + \left({maxCos}^{2} \cdot {ux}^{2} + 2 \cdot \left(maxCos \cdot ux\right)\right)\right)}}
\]
Simplified0.5
\[\leadsto \sin \left(\left(uy \cdot 2\right) \cdot \pi\right) \cdot \sqrt{\color{blue}{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}}
\]
Applied add-cbrt-cube_binary320.5
\[\leadsto \sin \left(\left(uy \cdot 2\right) \cdot \pi\right) \cdot \color{blue}{\sqrt[3]{\left(\sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right) \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}}}
\]
Applied add-cbrt-cube_binary320.5
\[\leadsto \color{blue}{\sqrt[3]{\left(\sin \left(\left(uy \cdot 2\right) \cdot \pi\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)}} \cdot \sqrt[3]{\left(\sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right) \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}}
\]
Applied cbrt-unprod_binary320.6
\[\leadsto \color{blue}{\sqrt[3]{\left(\left(\sin \left(\left(uy \cdot 2\right) \cdot \pi\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\left(\sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right) \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right)}}
\]
Applied log1p-expm1-u_binary320.6
\[\leadsto \sqrt[3]{\left(\color{blue}{\mathsf{log1p}\left(\mathsf{expm1}\left(\sin \left(\left(uy \cdot 2\right) \cdot \pi\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right)\right)} \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\left(\sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right) \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right)}
\]
Simplified0.6
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\color{blue}{\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)}\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\left(\sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right) \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right)}
\]
Applied pow1_binary320.6
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\left(\sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right) \cdot \sqrt{\color{blue}{{\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{1}}}\right)}
\]
Applied sqrt-pow1_binary320.6
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\left(\sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)}\right) \cdot \color{blue}{{\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}}\right)}
\]
Applied pow1_binary320.6
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\left(\sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)} \cdot \sqrt{\color{blue}{{\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{1}}}\right) \cdot {\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}\right)}
\]
Applied sqrt-pow1_binary320.6
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\left(\sqrt{2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)} \cdot \color{blue}{{\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot {\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}\right)}
\]
Applied pow1_binary320.6
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\left(\sqrt{\color{blue}{{\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{1}}} \cdot {\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}\right) \cdot {\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}\right)}
\]
Applied sqrt-pow1_binary320.6
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\left(\color{blue}{{\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}\right) \cdot {\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}\right)}
\]
Applied pow-sqr_binary320.5
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \left(\color{blue}{{\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(2 \cdot \frac{1}{2}\right)}} \cdot {\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(\frac{1}{2}\right)}\right)}
\]
Applied pow-prod-up_binary320.5
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)\right) \cdot \sin \left(\left(uy \cdot 2\right) \cdot \pi\right)\right) \cdot \color{blue}{{\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(maxCos \cdot ux + 2\right)\right)\right)}^{\left(2 \cdot \frac{1}{2} + \frac{1}{2}\right)}}}
\]
Final simplification0.5
\[\leadsto \sqrt[3]{\left(\mathsf{log1p}\left(\mathsf{expm1}\left({\sin \left(2 \cdot \left(uy \cdot \pi\right)\right)}^{2}\right)\right) \cdot \sin \left(\pi \cdot \left(2 \cdot uy\right)\right)\right) \cdot {\left(2 \cdot \mathsf{fma}\left(maxCos, ux \cdot ux, ux\right) - \mathsf{fma}\left(ux, ux, \left(maxCos \cdot ux\right) \cdot \left(2 + maxCos \cdot ux\right)\right)\right)}^{1.5}}
\]