summaryrefslogtreecommitdiff
path: root/149/CH2/EX2.31
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /149/CH2/EX2.31
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 '149/CH2/EX2.31')
-rwxr-xr-x149/CH2/EX2.31/ex31.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/149/CH2/EX2.31/ex31.sce b/149/CH2/EX2.31/ex31.sce
new file mode 100755
index 000000000..bf9507d8e
--- /dev/null
+++ b/149/CH2/EX2.31/ex31.sce
@@ -0,0 +1,11 @@
+clear
+clc
+disp("the equations can be re written as AX=B where X=[x1;x2;x3;x4] and ")
+A=[1 -1 1 1;1 1 -1 1;1 1 1 -1;1 1 1 1]
+B=[2;-4;4;0]
+disp("determinant of A=")
+det(A)
+disp("inverse of A =")
+inv(A)
+disp("X=")
+inv(A)*B \ No newline at end of file