spectral decomposition of a matrix calculator