Initial program 13.6
\[\cos \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)}
\]
Simplified13.6
\[\leadsto \color{blue}{\cos \left(uy \cdot \left(2 \cdot \pi\right)\right) \cdot \sqrt{\mathsf{fma}\left(\mathsf{fma}\left(ux, maxCos, 1\right) - ux, ux - \mathsf{fma}\left(ux, maxCos, 1\right), 1\right)}}
\]
Proof
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (Rewrite<= associate-*l*_binary32 (*.f32 (*.f32 uy 2) (PI.f32)))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 17 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (-.f32 (Rewrite<= fma-def_binary32 (+.f32 (*.f32 ux maxCos) 1)) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 17 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (Rewrite<= associate-+r-_binary32 (+.f32 (*.f32 ux maxCos) (-.f32 1 ux))) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 17 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (Rewrite<= +-commutative_binary32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 17 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (-.f32 ux (Rewrite<= fma-def_binary32 (+.f32 (*.f32 ux maxCos) 1))) 1))): 17 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (Rewrite=> sub-neg_binary32 (+.f32 ux (neg.f32 (+.f32 (*.f32 ux maxCos) 1)))) 1))): 0 points increase in error, 17 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (Rewrite<= remove-double-neg_binary32 (neg.f32 (neg.f32 ux))) (neg.f32 (+.f32 (*.f32 ux maxCos) 1))) 1))): 0 points increase in error, 17 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (Rewrite<= distribute-neg-in_binary32 (neg.f32 (+.f32 (neg.f32 ux) (+.f32 (*.f32 ux maxCos) 1)))) 1))): 17 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (neg.f32 (Rewrite<= +-commutative_binary32 (+.f32 (+.f32 (*.f32 ux maxCos) 1) (neg.f32 ux)))) 1))): 0 points increase in error, 17 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (neg.f32 (Rewrite<= associate-+r+_binary32 (+.f32 (*.f32 ux maxCos) (+.f32 1 (neg.f32 ux))))) 1))): 0 points increase in error, 17 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (neg.f32 (+.f32 (*.f32 ux maxCos) (Rewrite<= sub-neg_binary32 (-.f32 1 ux)))) 1))): 17 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (neg.f32 (Rewrite<= +-commutative_binary32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)))) 1))): 0 points increase in error, 17 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (Rewrite<= fma-def_binary32 (+.f32 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (neg.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)))) 1)))): 17 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (+.f32 (Rewrite<= *-commutative_binary32 (*.f32 (neg.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)))) 1))): 17 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (Rewrite<= +-commutative_binary32 (+.f32 1 (*.f32 (neg.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))))): 0 points increase in error, 17 points decrease in error
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (Rewrite<= cancel-sign-sub-inv_binary32 (-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))))): 0 points increase in error, 17 points decrease in error
Taylor expanded in ux around -inf 0.3
\[\leadsto \cos \left(uy \cdot \left(2 \cdot \pi\right)\right) \cdot \sqrt{\color{blue}{-1 \cdot \left({ux}^{2} \cdot {\left(1 + -1 \cdot maxCos\right)}^{2}\right) + 2 \cdot \left(ux \cdot \left(1 + -1 \cdot maxCos\right)\right)}}
\]
Simplified0.3
\[\leadsto \cos \left(uy \cdot \left(2 \cdot \pi\right)\right) \cdot \sqrt{\color{blue}{ux \cdot \left(\left(1 - maxCos\right) \cdot 2\right) - ux \cdot \left(ux \cdot {\left(1 - maxCos\right)}^{2}\right)}}
\]
Proof
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 ux (*.f32 (-.f32 1 maxCos) 2)) (*.f32 ux (*.f32 ux (pow.f32 (-.f32 1 maxCos) 2)))))): 0 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (-.f32 (Rewrite<= associate-*l*_binary32 (*.f32 (*.f32 ux (-.f32 1 maxCos)) 2)) (*.f32 ux (*.f32 ux (pow.f32 (-.f32 1 maxCos) 2)))))): 0 points increase in error, 12 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 (*.f32 ux (Rewrite=> sub-neg_binary32 (+.f32 1 (neg.f32 maxCos)))) 2) (*.f32 ux (*.f32 ux (pow.f32 (-.f32 1 maxCos) 2)))))): 0 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 (*.f32 ux (+.f32 1 (Rewrite<= mul-1-neg_binary32 (*.f32 -1 maxCos)))) 2) (*.f32 ux (*.f32 ux (pow.f32 (-.f32 1 maxCos) 2)))))): 0 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (-.f32 (Rewrite<= *-commutative_binary32 (*.f32 2 (*.f32 ux (+.f32 1 (*.f32 -1 maxCos))))) (*.f32 ux (*.f32 ux (pow.f32 (-.f32 1 maxCos) 2)))))): 0 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 2 (*.f32 ux (+.f32 1 (*.f32 -1 maxCos)))) (*.f32 ux (*.f32 ux (pow.f32 (Rewrite=> sub-neg_binary32 (+.f32 1 (neg.f32 maxCos))) 2)))))): 0 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 2 (*.f32 ux (+.f32 1 (*.f32 -1 maxCos)))) (*.f32 ux (*.f32 ux (pow.f32 (+.f32 1 (Rewrite<= mul-1-neg_binary32 (*.f32 -1 maxCos))) 2)))))): 0 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 2 (*.f32 ux (+.f32 1 (*.f32 -1 maxCos)))) (Rewrite<= associate-*l*_binary32 (*.f32 (*.f32 ux ux) (pow.f32 (+.f32 1 (*.f32 -1 maxCos)) 2)))))): 12 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 2 (*.f32 ux (+.f32 1 (*.f32 -1 maxCos)))) (*.f32 (Rewrite<= unpow2_binary32 (pow.f32 ux 2)) (pow.f32 (+.f32 1 (*.f32 -1 maxCos)) 2))))): 0 points increase in error, 12 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (Rewrite<= unsub-neg_binary32 (+.f32 (*.f32 2 (*.f32 ux (+.f32 1 (*.f32 -1 maxCos)))) (neg.f32 (*.f32 (pow.f32 ux 2) (pow.f32 (+.f32 1 (*.f32 -1 maxCos)) 2))))))): 0 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (+.f32 (*.f32 2 (*.f32 ux (+.f32 1 (*.f32 -1 maxCos)))) (Rewrite<= mul-1-neg_binary32 (*.f32 -1 (*.f32 (pow.f32 ux 2) (pow.f32 (+.f32 1 (*.f32 -1 maxCos)) 2))))))): 0 points increase in error, 0 points decrease in error
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (Rewrite<= +-commutative_binary32 (+.f32 (*.f32 -1 (*.f32 (pow.f32 ux 2) (pow.f32 (+.f32 1 (*.f32 -1 maxCos)) 2))) (*.f32 2 (*.f32 ux (+.f32 1 (*.f32 -1 maxCos)))))))): 0 points increase in error, 0 points decrease in error
Applied egg-rr0.3
\[\leadsto \cos \color{blue}{\log \left({\left({\left(e^{2}\right)}^{\pi}\right)}^{uy}\right)} \cdot \sqrt{ux \cdot \left(\left(1 - maxCos\right) \cdot 2\right) - ux \cdot \left(ux \cdot {\left(1 - maxCos\right)}^{2}\right)}
\]
Final simplification0.3
\[\leadsto \cos \log \left({\left({\left(e^{2}\right)}^{\pi}\right)}^{uy}\right) \cdot \sqrt{ux \cdot \left(2 \cdot \left(1 - maxCos\right)\right) - ux \cdot \left(ux \cdot {\left(1 - maxCos\right)}^{2}\right)}
\]