summaryrefslogtreecommitdiff
path: root/3293/CH2/EX2.12
diff options
context:
space:
mode:
Diffstat (limited to '3293/CH2/EX2.12')
-rwxr-xr-x3293/CH2/EX2.12/Ex2_12.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3293/CH2/EX2.12/Ex2_12.sce b/3293/CH2/EX2.12/Ex2_12.sce
new file mode 100755
index 000000000..455c60d10
--- /dev/null
+++ b/3293/CH2/EX2.12/Ex2_12.sce
@@ -0,0 +1,24 @@
+//page 41
+//Example 2.12
+clear;
+clc;
+close;
+a1 = [3 0 -3];
+a2 = [-1 1 2];
+a3 = [4 2 -2];
+a4 = [2 1 1];
+disp(a1, 'a1 = ');
+disp(a2, 'a2 = ');
+disp(a3, 'a3 = ');
+disp(a4, 'a4 = ');
+t = 2 * a1 + 2 * a2 - a3 + 0 * a4;
+disp(' = 0',t,' Since, 2 * a1 + 2 * a2 - a3 + 0 * a4 = ');
+disp('a1,a2,a3,a4 are linearly independent');
+e1 = [1 0 0];
+e2 = [0 1 0];
+e3 = [0 0 1];
+disp(e1, 'Now, e1 = ');
+disp(e2, 'e2 = ');
+disp(e3, 'e3 = ');
+disp('Also, e1,e2,e3 are linearly independent.');
+//end