すみません,再現ソースをペーストするとき間違いがありました.正しい再現ソースは以下のとおりです.
\documentclass{beamer}
\begin{document}
\begin{frame}{label to formula}
The solutions of a quadratic equation are,
\begin{equation}\label{eqn:quadratic_formula}
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.
\end{equation}
\end{frame}
\end{document}
\documentclass{beamer}
\begin{document}
\begin{frame}{label to formula}
The solutions of a quadratic equation are,
\begin{equation}\label{eqn:quadratic_formula}
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.
\end{equation}
\end{frame}
\end{document}