Table of Contents

				
					import numpy as np
				
			
Example from slides
				
					A = np.array([[5, 3],
              [4, 1]])
				
			
				
					eigenvalues, eigenvectors = np.linalg.eig(A)
				
			
				
					print(eigenvalues)
				
			
				
					print(eigenvectors)
				
			
3×3 Example
				
					A = np.array([[-2, -4, 2], [-2, 1, 2], [4, 2, 5]])
				
			
				
					eigenvalues, eigenvectors = np.linalg.eig(A)

				
			
				
					print("Eigenvalues:")
print(eigenvalues)
				
			
				
					print("\nEigenvectors:")
print(eigenvectors)
				
			

Free Community

Join 1,000+ AI Automation Builders

Weekly tutorials, live calls & direct access to Ryan & Matt.

Join Free →

Keep Learning

Python Augmented Matrix

https://youtu.be/wDrAPOPUIMY Example 1 Example 2 row operations Multiply the first row by 3 add: 2nd row to the first subtract 2nd row...

Python Multiply Matrices

https://youtu.be/RzePfrH0XNM

Inverse Matrix

https://youtu.be/wfHaKrmMbFk 2x2 example 3x3 example properties A^-1 * A = A * A^-1 = I (AB)^−1=B^−1A^−1 (A^T)^−1=(A^−1)^T (kA)^−1=(1/k)(​A^−1) (A^−1)^−1=A

Python Identity Matrix

https://youtu.be/Jeu9Fkfh9Hw Example 1 Create a 3x3 identity matrix also can use np.eye Example 2 Matrix Multiplication Example 3 Determinant of the Identity...