Solution (source code)

= Solution

\b[It is neither <injective> nor <surjective> onto $\mathbb R$, so it has no <inverse function> on the stated domain and codomain.] The distinct inputs $0$ and $\pi/3$ both lie in the domain and both give zero. All values lie in $[-1,1]$, so, for example, the real number $2$ has no preimage.