From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 257/CH8/EX8.26/example_8_26.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 257/CH8/EX8.26/example_8_26.sce (limited to '257/CH8/EX8.26') diff --git a/257/CH8/EX8.26/example_8_26.sce b/257/CH8/EX8.26/example_8_26.sce new file mode 100644 index 000000000..54d87cc0c --- /dev/null +++ b/257/CH8/EX8.26/example_8_26.sce @@ -0,0 +1,21 @@ +//determining critical value of K +s=%s +syms K +m=0*s^3+s^2+(K+1)*s+2*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=") +routh(3,1)=0 //For marginaly stable system +sys=syslin('c',s*(3*s+1)/(s^3+2*s+4)) +k=kpure(sys) +disp(k,"K(marginal)=") \ No newline at end of file -- cgit