summaryrefslogtreecommitdiff
path: root/26/CH4/EX4.4.27
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /26/CH4/EX4.4.27
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '26/CH4/EX4.4.27')
-rwxr-xr-x26/CH4/EX4.4.27/4_4_27.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/26/CH4/EX4.4.27/4_4_27.sce b/26/CH4/EX4.4.27/4_4_27.sce
new file mode 100755
index 000000000..e83042db6
--- /dev/null
+++ b/26/CH4/EX4.4.27/4_4_27.sce
@@ -0,0 +1,18 @@
+disp('to check if vectors v1 v2 and v3 are linearly independent')
+v1=[1;0;0;1]
+v2=[3;1;-2;0]
+v3=[0;-1;3;-1]
+disp(v3,'v3=',v2,'v2=',v1,'v1=')
+disp('forming an augmented matrix')
+a=[1 3 0 0;0 1 -1 0;0 -2 3 0;1 0 -1 0]
+disp(a,'A=')
+disp('performing row operations')
+a(4,:)=a(4,:)-a(1,:)
+disp(a)
+a(3,:)=a(3,:)+2*a(2,:)
+a(4,:)=a(4,:)+3*a(2,:)
+disp(a)
+a(4,:)=a(4,:)+4*a(3,:)
+disp(a)
+disp('since the vector equation has only the trivial solution')
+disp('vectors v1 v2 and v3 are linearly independent') \ No newline at end of file