diff options
Diffstat (limited to '413/CH2/EX2.1/Example_2_1.sce')
-rw-r--r-- | 413/CH2/EX2.1/Example_2_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/413/CH2/EX2.1/Example_2_1.sce b/413/CH2/EX2.1/Example_2_1.sce new file mode 100644 index 000000000..33637531c --- /dev/null +++ b/413/CH2/EX2.1/Example_2_1.sce @@ -0,0 +1,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))
\ No newline at end of file |