### 2.46.1 Eigenvalues : `eigenvals`

`eigenvals` takes as argument a square matrix A of size n.
`eigenvals` returns the sequence of the n eigenvalues of A.
Remark : If A is exact, `Xcas` may not be able to find the exact roots of the characteristic polynomial, `eigenvals` will return approximate eigenvalues of A if the coefficients are numeric or a subset of the eigenvalues if the coefficients are symbolic.
Input :

`eigenvals([[4,1,-2],[1,2,-1],[2,1,0]])`

Output :

`(2,2,2)`

Input :

`eigenvals([[4,1,0],[1,2,-1],[2,1,0]])`

Output :

`(0.324869129433,4.21431974338,1.46081112719)`