Source TeX:
\cos\left(\frac{\pi}{2}-\theta\right)=\sin(\theta)