Initial program 13.8
\[\sqrt{-\log \left(1 - u1\right)} \cdot \cos \left(\left(2 \cdot \pi\right) \cdot u2\right)
\]
Simplified0.3
\[\leadsto \color{blue}{\sqrt{-\mathsf{log1p}\left(-u1\right)} \cdot \cos \left(2 \cdot \left(\pi \cdot u2\right)\right)}
\]
Proof
(*.f32 (sqrt.f32 (neg.f32 (log1p.f32 (neg.f32 u1)))) (cos.f32 (*.f32 2 (*.f32 (PI.f32) u2)))): 0 points increase in error, 0 points decrease in error
(*.f32 (sqrt.f32 (neg.f32 (Rewrite<= log1p-def_binary32 (log.f32 (+.f32 1 (neg.f32 u1)))))) (cos.f32 (*.f32 2 (*.f32 (PI.f32) u2)))): 231 points increase in error, 2 points decrease in error
(*.f32 (sqrt.f32 (neg.f32 (log.f32 (Rewrite<= sub-neg_binary32 (-.f32 1 u1))))) (cos.f32 (*.f32 2 (*.f32 (PI.f32) u2)))): 0 points increase in error, 0 points decrease in error
(*.f32 (sqrt.f32 (neg.f32 (log.f32 (-.f32 1 u1)))) (cos.f32 (Rewrite<= associate-*l*_binary32 (*.f32 (*.f32 2 (PI.f32)) u2)))): 0 points increase in error, 0 points decrease in error
Final simplification0.3
\[\leadsto \cos \left(2 \cdot \left(\pi \cdot u2\right)\right) \cdot \sqrt{-\mathsf{log1p}\left(-u1\right)}
\]