Steady precession quadratic for an orientation-dependent potential (source code)

= Steady precession quadratic for an orientation-dependent potential
{title2=$C^2n^2\ge4AMgh\cos\alpha$}

Consider an axially symmetric <rigid body> rotating about a <fixed pivot (mechanics)>, with transverse and axial <principal moments of inertia> $A$ and $C$ and orientation-dependent <potential energy> $Mgh\cos\theta$. Let the inclination $\alpha$ be nonvertical, $0<\alpha<\pi$, and let $n$ be the <axial angular velocity of a symmetric top>. Conservation of the two cyclic <angular momenta> makes both $n$ and the steady <precession> rate $\Omega$ constant. The tilt <Euler-Lagrange equation>, after division by $\sin\alpha$, gives
$$
A\Omega^2\cos\alpha-Cn\Omega+Mgh=0.
$$
When $\cos\alpha\ne0$, a real <precession> rate exists exactly when the <quadratic discriminant> obeys $C^2n^2-4AMgh\cos\alpha\geq0$. At horizontal inclination, the equation is linear: if $Cn\ne0$, then $\Omega=Mgh/(Cn)$. If $Cn=0$ and $Mgh\ne0$, there is no steady horizontal solution. Vertical inclinations require the original undivided equation instead. The <moments of inertia> and lever arm $h$ must all refer to the same <fixed pivot (mechanics)>, rather than mixing central and pivot values.