summaryrefslogtreecommitdiff
path: root/1499/CH7/EX7.36/q36.sce
diff options
context:
space:
mode:
Diffstat (limited to '1499/CH7/EX7.36/q36.sce')
-rw-r--r--1499/CH7/EX7.36/q36.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1499/CH7/EX7.36/q36.sce b/1499/CH7/EX7.36/q36.sce
new file mode 100644
index 000000000..a2c68e163
--- /dev/null
+++ b/1499/CH7/EX7.36/q36.sce
@@ -0,0 +1,11 @@
+A=[-1 -4 -1;-1 -6 -2;-1 -2 -3];
+B=[0;0;1];
+C=[3 1 0]
+
+[r c]=size(A)
+I=eye(r,c)
+
+p=s*I-A // s*I-A
+r=inv(p)
+q=C*r
+t=q*B