summaryrefslogtreecommitdiff
path: root/413/CH2/EX2.4/Example_2_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /413/CH2/EX2.4/Example_2_4.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '413/CH2/EX2.4/Example_2_4.sce')
-rw-r--r--413/CH2/EX2.4/Example_2_4.sce24
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