Solution (source code)

= Solution

The <generalized momentum> conjugate to $q$ is
$$
\boxed{p_q=\frac{\partial L}{\partial\dot q}.}
$$