TeX source:
\cos \colon [0,\pi] \to [-1,1]