Inertia of a bilinear form (source code)

= Inertia of a bilinear form
{title2=$(p,q,r)$}

The inertia of a real symmetric bilinear form is the triple giving the numbers of positive, negative, and zero squares in a diagonalization. <Sylvester's law of inertia> makes it independent of the chosen basis.