This section describes functionality to test equivalence of quadratic forms. Currently only implemented over the rationals.
Given two rational symmetric matrices X and Y, determine if they are rationally equivalent, and if so, return T with Y=TXTt.
Given two quadratic forms f and g over Q, determine whether they are rationally equivalent, and if so, return a transform.
Given two rational symmetric matrices X and Y, determine if they are rationally similar, and if so, return T and s with s Y=TXTt.
Given two quadratic forms f and g over Q, determine whether they are rationally similar, and if so, return a transform and a similarity factor.