diff options
Diffstat (limited to '413/CH2/EX2.4/Example_2_4.sce')
-rw-r--r-- | 413/CH2/EX2.4/Example_2_4.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/413/CH2/EX2.4/Example_2_4.sce b/413/CH2/EX2.4/Example_2_4.sce new file mode 100644 index 000000000..c307d1cf2 --- /dev/null +++ b/413/CH2/EX2.4/Example_2_4.sce @@ -0,0 +1,24 @@ + //Compute the Frobenius norms of A, B, C and the infinity norms
+clearglobal()
+clc;
+A=[5 9;-2 1]
+printf('Matrix A is')
+disp(A)
+printf('Frobenius Norm of A is')
+disp(norm(A,'fro'))
+B=[0.1 0;0.2 0.1]
+printf('infinite Norm of A is')
+disp(norm(A,'inf'))
+printf('Matrix B is')
+disp(B)
+printf('Frobenius Norm of B is')
+disp(norm(B,'fro'))
+printf('infinite Norm of B is')
+disp(norm(B,'inf'))
+C=[0.2 0.1;0.1 0]
+printf('Matrix C is')
+disp(C)
+printf('Frobenius Norm of C is')
+disp(norm(C,'fro'))
+printf('infinite Norm of C is')
+disp(norm(C,'inf'))
\ No newline at end of file |