summaryrefslogtreecommitdiff
path: root/104/CH6/EX6.10/6_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '104/CH6/EX6.10/6_10.sce')
-rwxr-xr-x104/CH6/EX6.10/6_10.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/104/CH6/EX6.10/6_10.sce b/104/CH6/EX6.10/6_10.sce
new file mode 100755
index 000000000..d0e494540
--- /dev/null
+++ b/104/CH6/EX6.10/6_10.sce
@@ -0,0 +1,19 @@
+//bilinear transformation method
+s=%s
+syms K
+//p=z^3+z^2+z+K
+//substituting z=(1+r)/(1-r) we get
+m=(1-K)*s^3+(1+3*K)*s^2+3*(1-K)*s+3+K
+cof_a_0 = coeffs(m,'s',0);
+cof_a_1 = coeffs(m,'s',1);
+cof_a_2 = coeffs(m,'s',2);
+cof_a_3 = coeffs(m,'s',3);
+
+r=[cof_a_0 cof_a_1 cof_a_2 cof_a_3]
+
+n=length(r);
+routh=[r([4,2]);r([3,1])];
+routh=[routh;-det(routh)/routh(2,1),0];
+t=routh(2:3,1:2); //extracting the square sub block of routh matrix
+routh=[routh;-det(t)/t(2,1),0]
+disp(routh,"rouths tabulation=") \ No newline at end of file