I have written a program for the principal axis transformation of quadrics in matrix form with homogeneous coordinates. The Solve command goes into an infinite loop in the third function call of “principalAxisMat” with matrix “A3”. It fails to solve a system of quadratic equations in exact form. Is this a failure of Wolfram Mathematica or is this my fault?