Quadratic Form Matrix Calculator