filmov
tv
Linear algebra: How to diagonalize a matrix using SymPy with Python
Показать описание
Alternative videos here:
Code:
from sympy import *
init_printing()
M = Matrix(3,3,[3,2,0,-1,0,0,2,4,-3])
M.is_diagonalizable()
(P,D) = M.diagonalize()
D == P.inv()*M*P
#mathematics #python #linearalgebra
Code:
from sympy import *
init_printing()
M = Matrix(3,3,[3,2,0,-1,0,0,2,4,-3])
M.is_diagonalizable()
(P,D) = M.diagonalize()
D == P.inv()*M*P
#mathematics #python #linearalgebra