Mathematica to solve a few NxN matrices

  • Context: Mathematica 
  • Thread starter Thread starter nbo10
  • Start date Start date
  • Tags Tags
    Mathematica Matrices
Click For Summary
SUMMARY

The discussion centers on solving NxN matrices using Mathematica, specifically addressing the issue of eigenvalues and eigenvectors returning complex numbers with zero real parts (e.g., 0.i). The solution provided by user Patrick is to utilize the Chop[] function in Mathematica, which effectively filters out small imaginary components, allowing for proper comparison of eigenvalues. This method ensures that comparisons such as greater than, less than, and equal to can be performed accurately on the results.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of eigenvalues and eigenvectors
  • Basic knowledge of complex numbers and their representation
  • Experience with matrix operations in computational software
NEXT STEPS
  • Research the Chop[] function in Mathematica for handling complex numbers
  • Explore eigenvalue decomposition techniques in Mathematica
  • Learn about matrix manipulation functions in Mathematica
  • Investigate numerical stability in eigenvalue computations
USEFUL FOR

Mathematica users, mathematicians, and engineers working with linear algebra and matrix computations who need to handle complex eigenvalues effectively.

nbo10
Messages
416
Reaction score
5
Hi All,
I'm using mathematica to solve a few NxN matrices, but the eigen(values/vectors) comes back with 0. i, which is zero but how do I evaluate it as zero so that I can do comparison, > < =, etc... Thanks

JMD
 
Physics news on Phys.org
I don't know exactly how to do it in mathematica, but I think you could filter out the real component and compare that.
 
nbo10 said:
Hi All,
I'm using mathematica to solve a few NxN matrices, but the eigen(values/vectors) comes back with 0. i, which is zero but how do I evaluate it as zero so that I can do comparison, > < =, etc... Thanks

JMD


Use Chop[] !

cheers,
Patrick
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K