diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /50/CH3/EX3.4 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '50/CH3/EX3.4')
-rwxr-xr-x | 50/CH3/EX3.4/ex_3_4.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/50/CH3/EX3.4/ex_3_4.sce b/50/CH3/EX3.4/ex_3_4.sce new file mode 100755 index 000000000..9cbb29d89 --- /dev/null +++ b/50/CH3/EX3.4/ex_3_4.sce @@ -0,0 +1,30 @@ +// example no.3.4
+// solve the system of equations
+
+//(a) . by using cramer's rule,
+
+A=[1 2 -1;3 6 1;3 3 2]
+
+B1=[2 2 -1;1 6 1;3 3 2]
+
+B2=[1 2 -1;3 1 1;3 3 2]
+
+B3=[1 2 2;3 6 1; 3 3 3]
+
+
+//we know;
+
+X1=det(B1)/det(A)
+X2=det(B2)/det(A)
+X3=det(B3)/det(A)
+
+
+//(b). by detemining the inverse of the coefficient matrix
+
+A=[1 2 -1;3 6 1;3 3 2]
+
+b=[2 ;1 ;3]
+
+//we know;
+
+X=inv(A)*b
\ No newline at end of file |