diff options
Diffstat (limited to '413/CH8/EX8.1/Example_8_1.sce')
-rw-r--r-- | 413/CH8/EX8.1/Example_8_1.sce | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/413/CH8/EX8.1/Example_8_1.sce b/413/CH8/EX8.1/Example_8_1.sce new file mode 100644 index 000000000..99cb72ca1 --- /dev/null +++ b/413/CH8/EX8.1/Example_8_1.sce @@ -0,0 +1,49 @@ +clc
+clear
+A=[-4 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
+1 -4 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
+0 1 -4 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
+0 0 1 -4 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
+0 0 0 1 -4 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
+0 0 0 0 1 -4 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0
+0 0 0 0 0 1 -4 1 0 0 0 0 0 1 0 0 0 0 0 0 0
+1 0 0 0 0 0 0 -4 1 0 0 0 0 0 1 0 0 0 0 0 0
+0 1 0 0 0 0 0 1 -4 1 0 0 0 0 0 1 0 0 0 0 0
+0 0 1 0 0 0 0 0 1 -4 1 0 0 0 0 0 1 0 0 0 0
+0 0 0 1 0 0 0 0 0 1 -4 1 0 0 0 0 0 1 0 0 0
+0 0 0 0 1 0 0 0 0 0 1 -4 1 0 0 0 0 0 1 0 0
+0 0 0 0 0 1 0 0 0 0 0 1 -4 1 0 0 0 0 0 1 0
+0 0 0 0 0 0 1 0 0 0 0 0 1 -4 1 0 0 0 0 0 1
+0 0 0 0 0 0 0 1 0 0 0 0 0 0 -4 1 0 0 0 0 0
+0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 -4 1 0 0 0 0
+0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 -4 1 0 0 0
+0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 -4 1 0 0
+0 0 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