summaryrefslogtreecommitdiff
path: root/413/CH2/EX2.1/Example_2_1.sce
blob: 33637531cdb4ac13be3de35ac19cf25fea095c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Matrix operations
clearglobal()
clc;
A=[3 -1 4;0 2 -3; 1  1 2]
printf('Matrix is')
disp(A)
printf('Transpose is')
 disp (A')
 printf('Trace of Matrix is')
 disp(trace(A))
 printf('Determinant of Matrix is')
 disp(det(A))
printf('Characteristic equation of Matrix is')
disp(poly(A,"x"))
printf('Eigenvalues  of Matrix is')
 disp(spec(A))