trigonometry and matrices spectrum