Posts

Showing posts from October, 2026

How to find Eigen value and Eigen vector using Python

       These are the concepts available in Linear algebra. It has the following definitions. Eigenvalue( λ ): It is a scalar value.It shows about the eigen vector stretch and compress in terms of linear transformation. Eigenvector(v): It is a vector value.It is a non-zero vector which changes the scale alone. The formula for square matrix A is given below. Av=λv Where A represents matrix. ‘v’ denotes eigenvector. ‘λ’ is for eigenvalue. Let us implement the eigen value and eigen vector in python. This program imports numpy package with its object np. A square matrix is created with elements. Eigenvalues and eigenvectors variables are declared. There is a function ‘linalg.eig(matrix)’ which generate the eigenvalues and eigenvectors. Python Program: import numpy as np # Declare a square matrix A = np.array([[5, 3, 2],               [1,-1, 4],      ...