- #1
thoughtgaze
- 74
- 0
I'm trying to compute the eigenvalues and eigenvectors of a 4x4 matrix using mathematica.
The problem comes when I try to check the values using the commands:
{vals, vecs} = Eigensystem[m]
TrueQ[m.vecs[[1]] == vals[[1]] vecs[[1]]]
Which should return "True"; instead it returns "False"
I tested a different matrix and it returns true. So I'm not sure what to think about that. I would try it by hand, and might end up doing so, but I'm pressed for time and the calculation looks like it could get pretty hairy since the matrix is necessarily in symbolic form. Any help is appreciated. Thanks.
The problem comes when I try to check the values using the commands:
{vals, vecs} = Eigensystem[m]
TrueQ[m.vecs[[1]] == vals[[1]] vecs[[1]]]
Which should return "True"; instead it returns "False"
I tested a different matrix and it returns true. So I'm not sure what to think about that. I would try it by hand, and might end up doing so, but I'm pressed for time and the calculation looks like it could get pretty hairy since the matrix is necessarily in symbolic form. Any help is appreciated. Thanks.