diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /257/CH8/EX8.6/example_8_6.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '257/CH8/EX8.6/example_8_6.sce')
-rw-r--r-- | 257/CH8/EX8.6/example_8_6.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/257/CH8/EX8.6/example_8_6.sce b/257/CH8/EX8.6/example_8_6.sce new file mode 100644 index 000000000..14192064f --- /dev/null +++ b/257/CH8/EX8.6/example_8_6.sce @@ -0,0 +1,27 @@ +//determining critical value of K
+s=%s
+syms K
+m=0.1*s^3+0.65*s^2+s+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',1/(0.1*s^3+0.65*s^2+s))
+k=kpure(sys)
+disp(k,"K(marginal)=")
+
+w=sqrt(-k/0.65)
+disp(w,"w = ")
+
+
+
|