Initial program 13.6
\[\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)}
\]
Simplified13.6
\[\leadsto \color{blue}{\sin \left(uy \cdot \left(2 \cdot \pi\right)\right) \cdot \sqrt{\mathsf{fma}\left(\mathsf{fma}\left(ux, maxCos - 1, 1\right), ux - \mathsf{fma}\left(ux, maxCos, 1\right), 1\right)}}
\]
Proof
(*.f32 (sin.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (fma.f32 (fma.f32 ux (-.f32 maxCos 1) 1) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (Rewrite<= associate-*l*_binary32 (*.f32 (*.f32 uy 2) (PI.f32)))) (sqrt.f32 (fma.f32 (fma.f32 ux (-.f32 maxCos 1) 1) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (fma.f32 ux (Rewrite=> sub-neg_binary32 (+.f32 maxCos (neg.f32 1))) 1) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (fma.f32 ux (+.f32 maxCos (Rewrite=> metadata-eval -1)) 1) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (fma.f32 ux (Rewrite<= +-commutative_binary32 (+.f32 -1 maxCos)) 1) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (Rewrite<= fma-def_binary32 (+.f32 (*.f32 ux (+.f32 -1 maxCos)) 1)) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (Rewrite<= distribute-rgt-out_binary32 (+.f32 (*.f32 -1 ux) (*.f32 maxCos ux))) 1) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (+.f32 (Rewrite<= neg-mul-1_binary32 (neg.f32 ux)) (*.f32 maxCos ux)) 1) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (+.f32 (neg.f32 ux) (Rewrite<= *-commutative_binary32 (*.f32 ux maxCos))) 1) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (Rewrite<= +-commutative_binary32 (+.f32 1 (+.f32 (neg.f32 ux) (*.f32 ux maxCos)))) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (Rewrite<= associate-+l+_binary32 (+.f32 (+.f32 1 (neg.f32 ux)) (*.f32 ux maxCos))) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 3 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (Rewrite<= sub-neg_binary32 (-.f32 1 ux)) (*.f32 ux maxCos)) (-.f32 ux (fma.f32 ux maxCos 1)) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.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))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (Rewrite<= unsub-neg_binary32 (+.f32 ux (neg.f32 (+.f32 (*.f32 ux maxCos) 1)))) 1))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.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, 0 points decrease in error
(*.f32 (sin.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))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.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, 0 points decrease in error
(*.f32 (sin.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))): 4 points increase in error, 5 points decrease in error
(*.f32 (sin.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))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.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, 0 points decrease in error
(*.f32 (sin.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)))): 79 points increase in error, 66 points decrease in error
(*.f32 (sin.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))): 0 points increase in error, 0 points decrease in error
(*.f32 (sin.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, 0 points decrease in error
(*.f32 (sin.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, 0 points decrease in error
Taylor expanded in ux around 0 0.5
\[\leadsto \sin \left(uy \cdot \left(2 \cdot \pi\right)\right) \cdot \sqrt{\color{blue}{\left(maxCos - 1\right) \cdot \left(\left(1 - maxCos\right) \cdot {ux}^{2}\right) + ux \cdot \left(\left(1 + -1 \cdot \left(maxCos - 1\right)\right) - maxCos\right)}}
\]
Simplified0.5
\[\leadsto \sin \left(uy \cdot \left(2 \cdot \pi\right)\right) \cdot \sqrt{\color{blue}{ux \cdot \left(\left(\left(-1 + maxCos\right) \cdot \left(1 - maxCos\right)\right) \cdot ux - \left(-1 + maxCos\right) \cdot 2\right)}}
\]
Proof
(*.f32 ux (-.f32 (*.f32 (*.f32 (+.f32 -1 maxCos) (-.f32 1 maxCos)) ux) (*.f32 (+.f32 -1 maxCos) 2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (Rewrite<= +-commutative_binary32 (+.f32 maxCos -1)) (-.f32 1 maxCos)) ux) (*.f32 (+.f32 -1 maxCos) 2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (+.f32 maxCos (Rewrite<= metadata-eval (neg.f32 1))) (-.f32 1 maxCos)) ux) (*.f32 (+.f32 -1 maxCos) 2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (Rewrite<= sub-neg_binary32 (-.f32 maxCos 1)) (-.f32 1 maxCos)) ux) (*.f32 (+.f32 -1 maxCos) 2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (*.f32 (Rewrite<= +-commutative_binary32 (+.f32 maxCos -1)) 2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (*.f32 (+.f32 maxCos (Rewrite<= metadata-eval (neg.f32 1))) 2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (*.f32 (Rewrite<= sub-neg_binary32 (-.f32 maxCos 1)) 2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (*.f32 (-.f32 maxCos 1) (Rewrite<= metadata-eval (+.f32 1 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (Rewrite<= distribute-rgt-out_binary32 (+.f32 (*.f32 1 (-.f32 maxCos 1)) (*.f32 1 (-.f32 maxCos 1)))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (*.f32 (Rewrite<= metadata-eval (neg.f32 -1)) (-.f32 maxCos 1)) (*.f32 1 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (Rewrite<= distribute-lft-neg-in_binary32 (neg.f32 (*.f32 -1 (-.f32 maxCos 1)))) (*.f32 1 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (Rewrite<= distribute-rgt-neg-out_binary32 (*.f32 -1 (neg.f32 (-.f32 maxCos 1)))) (*.f32 1 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (*.f32 -1 (neg.f32 (Rewrite=> sub-neg_binary32 (+.f32 maxCos (neg.f32 1))))) (*.f32 1 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (*.f32 -1 (neg.f32 (+.f32 maxCos (Rewrite=> metadata-eval -1)))) (*.f32 1 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (*.f32 -1 (Rewrite=> distribute-neg-in_binary32 (+.f32 (neg.f32 maxCos) (neg.f32 -1)))) (*.f32 1 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (*.f32 -1 (+.f32 (neg.f32 maxCos) (Rewrite=> metadata-eval 1))) (*.f32 1 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (*.f32 -1 (Rewrite<= +-commutative_binary32 (+.f32 1 (neg.f32 maxCos)))) (*.f32 1 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (*.f32 -1 (+.f32 1 (Rewrite<= mul-1-neg_binary32 (*.f32 -1 maxCos)))) (*.f32 1 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (+.f32 (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos))) (Rewrite=> *-lft-identity_binary32 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (Rewrite<= associate--l+_binary32 (-.f32 (+.f32 (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos))) maxCos) 1)))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) (-.f32 (Rewrite<= +-commutative_binary32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos))))) 1))): 0 points increase in error, 0 points decrease in error
(Rewrite<= distribute-rgt-out--_binary32 (-.f32 (*.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) ux) ux) (*.f32 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1) ux))): 16 points increase in error, 17 points decrease in error
(-.f32 (Rewrite<= associate-*r*_binary32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) (*.f32 ux ux))) (*.f32 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1) ux)): 0 points increase in error, 0 points decrease in error
(-.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) (Rewrite<= unpow2_binary32 (pow.f32 ux 2))) (*.f32 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1) ux)): 0 points increase in error, 0 points decrease in error
(Rewrite=> fma-neg_binary32 (fma.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) (pow.f32 ux 2) (neg.f32 (*.f32 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1) ux)))): 1 points increase in error, 1 points decrease in error
(fma.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) (pow.f32 ux 2) (Rewrite<= mul-1-neg_binary32 (*.f32 -1 (*.f32 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1) ux)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= fma-def_binary32 (+.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) (pow.f32 ux 2)) (*.f32 -1 (*.f32 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1) ux)))): 1 points increase in error, 1 points decrease in error
(+.f32 (Rewrite<= associate-*r*_binary32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2)))) (*.f32 -1 (*.f32 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1) ux))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (Rewrite=> associate-*r*_binary32 (*.f32 (*.f32 -1 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1)) ux))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (Rewrite=> *-commutative_binary32 (*.f32 ux (*.f32 -1 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (Rewrite=> mul-1-neg_binary32 (neg.f32 (-.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) 1))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (neg.f32 (Rewrite=> sub-neg_binary32 (+.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) (neg.f32 1)))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (neg.f32 (+.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))) (Rewrite=> metadata-eval -1))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (neg.f32 (Rewrite=> +-commutative_binary32 (+.f32 -1 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos))))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (Rewrite=> distribute-neg-in_binary32 (+.f32 (neg.f32 -1) (neg.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos))))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 (Rewrite=> metadata-eval 1) (neg.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (*.f32 -1 maxCos)))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 maxCos (*.f32 -1 (+.f32 1 (Rewrite=> mul-1-neg_binary32 (neg.f32 maxCos))))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 maxCos (Rewrite=> distribute-lft-in_binary32 (+.f32 (*.f32 -1 1) (*.f32 -1 (neg.f32 maxCos))))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 maxCos (+.f32 (Rewrite=> metadata-eval -1) (*.f32 -1 (neg.f32 maxCos)))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (Rewrite=> associate-+r+_binary32 (+.f32 (+.f32 maxCos -1) (*.f32 -1 (neg.f32 maxCos)))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 (+.f32 maxCos (Rewrite<= metadata-eval (neg.f32 1))) (*.f32 -1 (neg.f32 maxCos))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 (Rewrite<= sub-neg_binary32 (-.f32 maxCos 1)) (*.f32 -1 (neg.f32 maxCos))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 (Rewrite<= *-lft-identity_binary32 (*.f32 1 (-.f32 maxCos 1))) (*.f32 -1 (neg.f32 maxCos))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 (*.f32 1 (-.f32 maxCos 1)) (*.f32 -1 (Rewrite<= mul-1-neg_binary32 (*.f32 -1 maxCos)))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 (*.f32 1 (-.f32 maxCos 1)) (Rewrite=> associate-*r*_binary32 (*.f32 (*.f32 -1 -1) maxCos))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 (*.f32 1 (-.f32 maxCos 1)) (*.f32 (Rewrite=> metadata-eval 1) maxCos)))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (Rewrite=> distribute-lft-out_binary32 (*.f32 1 (+.f32 (-.f32 maxCos 1) maxCos))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (Rewrite<= distribute-rgt-out_binary32 (+.f32 (*.f32 (-.f32 maxCos 1) 1) (*.f32 maxCos 1))))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 (Rewrite=> *-rgt-identity_binary32 (-.f32 maxCos 1)) (*.f32 maxCos 1)))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (neg.f32 (+.f32 (-.f32 maxCos 1) (Rewrite=> *-rgt-identity_binary32 maxCos)))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (Rewrite<= distribute-neg-out_binary32 (+.f32 (neg.f32 (-.f32 maxCos 1)) (neg.f32 maxCos)))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (+.f32 (Rewrite<= mul-1-neg_binary32 (*.f32 -1 (-.f32 maxCos 1))) (neg.f32 maxCos))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (+.f32 1 (Rewrite<= sub-neg_binary32 (-.f32 (*.f32 -1 (-.f32 maxCos 1)) maxCos))))): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 ux (Rewrite<= associate--l+_binary32 (-.f32 (+.f32 1 (*.f32 -1 (-.f32 maxCos 1))) maxCos)))): 7 points increase in error, 8 points decrease in error
Applied egg-rr0.6
\[\leadsto \color{blue}{\left(2 \cdot \left(\sin \left(\pi \cdot uy\right) \cdot \cos \left(\pi \cdot uy\right)\right)\right)} \cdot \sqrt{ux \cdot \left(\left(\left(-1 + maxCos\right) \cdot \left(1 - maxCos\right)\right) \cdot ux - \left(-1 + maxCos\right) \cdot 2\right)}
\]
Taylor expanded in ux around 0 0.6
\[\leadsto \left(2 \cdot \left(\sin \left(\pi \cdot uy\right) \cdot \cos \left(\pi \cdot uy\right)\right)\right) \cdot \sqrt{\color{blue}{-2 \cdot \left(\left(maxCos - 1\right) \cdot ux\right) + \left(maxCos - 1\right) \cdot \left(\left(1 - maxCos\right) \cdot {ux}^{2}\right)}}
\]
Simplified0.6
\[\leadsto \left(2 \cdot \left(\sin \left(\pi \cdot uy\right) \cdot \cos \left(\pi \cdot uy\right)\right)\right) \cdot \sqrt{\color{blue}{ux \cdot \left(\left(maxCos + -1\right) \cdot \left(\left(1 - maxCos\right) \cdot ux + -2\right)\right)}}
\]
Proof
(*.f32 ux (*.f32 (+.f32 maxCos -1) (+.f32 (*.f32 (-.f32 1 maxCos) ux) -2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (*.f32 (+.f32 maxCos (Rewrite<= metadata-eval (neg.f32 1))) (+.f32 (*.f32 (-.f32 1 maxCos) ux) -2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (*.f32 (Rewrite<= sub-neg_binary32 (-.f32 maxCos 1)) (+.f32 (*.f32 (-.f32 1 maxCos) ux) -2))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (Rewrite<= distribute-rgt-out_binary32 (+.f32 (*.f32 (*.f32 (-.f32 1 maxCos) ux) (-.f32 maxCos 1)) (*.f32 -2 (-.f32 maxCos 1))))): 4 points increase in error, 0 points decrease in error
(*.f32 ux (+.f32 (Rewrite<= associate-*r*_binary32 (*.f32 (-.f32 1 maxCos) (*.f32 ux (-.f32 maxCos 1)))) (*.f32 -2 (-.f32 maxCos 1)))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (+.f32 (*.f32 (-.f32 1 maxCos) (Rewrite<= *-commutative_binary32 (*.f32 (-.f32 maxCos 1) ux))) (*.f32 -2 (-.f32 maxCos 1)))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (+.f32 (*.f32 (-.f32 1 maxCos) (*.f32 (-.f32 maxCos 1) ux)) (*.f32 (Rewrite<= metadata-eval (neg.f32 2)) (-.f32 maxCos 1)))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (Rewrite<= cancel-sign-sub-inv_binary32 (-.f32 (*.f32 (-.f32 1 maxCos) (*.f32 (-.f32 maxCos 1) ux)) (*.f32 2 (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(*.f32 ux (Rewrite=> cancel-sign-sub-inv_binary32 (+.f32 (*.f32 (-.f32 1 maxCos) (*.f32 (-.f32 maxCos 1) ux)) (*.f32 (neg.f32 2) (-.f32 maxCos 1))))): 0 points increase in error, 0 points decrease in error
(Rewrite=> distribute-rgt-in_binary32 (+.f32 (*.f32 (*.f32 (-.f32 1 maxCos) (*.f32 (-.f32 maxCos 1) ux)) ux) (*.f32 (*.f32 (neg.f32 2) (-.f32 maxCos 1)) ux))): 16 points increase in error, 16 points decrease in error
(+.f32 (*.f32 (Rewrite=> associate-*r*_binary32 (*.f32 (*.f32 (-.f32 1 maxCos) (-.f32 maxCos 1)) ux)) ux) (*.f32 (*.f32 (neg.f32 2) (-.f32 maxCos 1)) ux)): 0 points increase in error, 1 points decrease in error
(+.f32 (Rewrite<= associate-*r*_binary32 (*.f32 (*.f32 (-.f32 1 maxCos) (-.f32 maxCos 1)) (*.f32 ux ux))) (*.f32 (*.f32 (neg.f32 2) (-.f32 maxCos 1)) ux)): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (Rewrite<= *-commutative_binary32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos))) (*.f32 ux ux)) (*.f32 (*.f32 (neg.f32 2) (-.f32 maxCos 1)) ux)): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (*.f32 (-.f32 maxCos 1) (-.f32 1 maxCos)) (Rewrite<= unpow2_binary32 (pow.f32 ux 2))) (*.f32 (*.f32 (neg.f32 2) (-.f32 maxCos 1)) ux)): 0 points increase in error, 0 points decrease in error
(+.f32 (Rewrite<= associate-*r*_binary32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2)))) (*.f32 (*.f32 (neg.f32 2) (-.f32 maxCos 1)) ux)): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (*.f32 (*.f32 (Rewrite=> metadata-eval -2) (-.f32 maxCos 1)) ux)): 0 points increase in error, 0 points decrease in error
(+.f32 (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))) (Rewrite<= associate-*r*_binary32 (*.f32 -2 (*.f32 (-.f32 maxCos 1) ux)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= +-commutative_binary32 (+.f32 (*.f32 -2 (*.f32 (-.f32 maxCos 1) ux)) (*.f32 (-.f32 maxCos 1) (*.f32 (-.f32 1 maxCos) (pow.f32 ux 2))))): 0 points increase in error, 0 points decrease in error
Final simplification0.6
\[\leadsto \left(2 \cdot \left(\sin \left(\pi \cdot uy\right) \cdot \cos \left(\pi \cdot uy\right)\right)\right) \cdot \sqrt{ux \cdot \left(\left(maxCos + -1\right) \cdot \left(ux \cdot \left(1 - maxCos\right) + -2\right)\right)}
\]