summaryrefslogtreecommitdiff
path: root/50/CH3/EX3.9/ex_3_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '50/CH3/EX3.9/ex_3_9.sce')
-rwxr-xr-x50/CH3/EX3.9/ex_3_9.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/50/CH3/EX3.9/ex_3_9.sce b/50/CH3/EX3.9/ex_3_9.sce
new file mode 100755
index 000000000..34c7609a3
--- /dev/null
+++ b/50/CH3/EX3.9/ex_3_9.sce
@@ -0,0 +1,15 @@
+//example no.3.9
+//solving the system using inverse of the cofficient matrix
+
+A=[1 1 1;4 3 -1;3 5 3]
+
+I=[1 0 0;0 1 0;0 0 1]
+
+b=[1 ;6 ;4]
+
+M=jorden(A,I)
+
+IA=M(1:3,4:6)
+
+X=IA*b
+