diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /29/CH12/EX12.49/exa12_49.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '29/CH12/EX12.49/exa12_49.sce')
-rwxr-xr-x | 29/CH12/EX12.49/exa12_49.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/29/CH12/EX12.49/exa12_49.sce b/29/CH12/EX12.49/exa12_49.sce new file mode 100755 index 000000000..eb8e50b86 --- /dev/null +++ b/29/CH12/EX12.49/exa12_49.sce @@ -0,0 +1,28 @@ +//caption:root_locus_and_value_of_K
+//example 12.49
+//page 576
+s=%s;
+syms K;
+GH=(K*(s+4))/(s+2)^2
+disp("the characterstics eq. is determined as:")
+CH=(s+2)^2+(K*(s+4))
+CH=sym('((s+2)^2)+K*(s+4)');
+disp('=0',CH,"characterstics_eq,CH=")
+K=sym('((s+2)^2/(s+4))')
+d=diff(K,s)
+e=(s+2)*(s+6)
+r1=roots(e)
+disp(r1,"roots=")
+disp("-2 and -6 is break away point")
+g=(s+4)/((s+2)^2)
+G=syslin('c',g)
+clf();
+evans(g,10)
+xgrid(2)
+disp("for wd=2rad/sec,the point on root locus is s=-4+j2")
+disp("the value of K at s=-4+j2 is 4")
+K=4
+k=4
+g=k*(s+4)/((s+2)^2)
+cl=g/(1+g)
+disp(cl,"C(s)/R(s)=")
\ No newline at end of file |