summaryrefslogtreecommitdiff
path: root/50/CH3/EX3.2/ex_3_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '50/CH3/EX3.2/ex_3_2.sce')
-rwxr-xr-x50/CH3/EX3.2/ex_3_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/50/CH3/EX3.2/ex_3_2.sce b/50/CH3/EX3.2/ex_3_2.sce
new file mode 100755
index 000000000..bc98fc202
--- /dev/null
+++ b/50/CH3/EX3.2/ex_3_2.sce
@@ -0,0 +1,13 @@
+//example no.3.2
+// show if a given matrix 'A' possesses 'property A'
+
+A=[2 -1 0 -1;-1 2 -1 0;0 -1 2 0;0 0 -1 2 ]
+
+P=[0 0 0 1;0 1 0 0;0 0 1 0;1 0 0 0] // let us take the pemutation matrix as P
+
+// then we find that
+
+P*A*P'
+
+// is of the form (3.2) . hence the matrix 'A' has property A
+