#julia #mathematics #linearalgebra
Assign matrices to variables and then find
-determinant
-inverse
-eigvecs
-eigvals
#characteristicPolynomial
-LU decomposition
-matrix arithmetic
-Matrix Exponentials
Julia Code:
using LinearAlgebra, LinearAlgebraX
A = [ 1 3 1; 2 -1 4; 0 5 6]
B = [ 1 2 0; -4 1 3 ;6 8 5]
det(A)
detx(A)
det(B)
InvA = inv(A)
InvB = inv(B)
eigvecs(A)
eigvecs(B)
eigvals(A)
eigvals(B)
char_poly(A)
char_poly(B)
L,U = lu(A)
l,u = lu(B)
5*A - 3*B
A+B
3*A + 3*B
A^2
B^3
A*B == B*A #commutative
tr(A)
tr(B)
diag(A)
diag(B)
exp(A^2)
exp(B^2)
Maple video with some of the stuff in this video: • Linear Algebra(Pt 2): How to create a...