summaryrefslogtreecommitdiff
path: root/104/CH9
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /104/CH9
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '104/CH9')
-rwxr-xr-x104/CH9/EX9.10/9_10.sce29
1 files changed, 15 insertions, 14 deletions
diff --git a/104/CH9/EX9.10/9_10.sce b/104/CH9/EX9.10/9_10.sce
index 4a6b9ba64..05d092f3b 100755
--- a/104/CH9/EX9.10/9_10.sce
+++ b/104/CH9/EX9.10/9_10.sce
@@ -1,15 +1,16 @@
-//multiple loop systems
-s=%s
-innerloop=syslin('c',6/s*(s+1)*(s+2))
-nyquist(innerloop)
-show_margins(innerloop,'nyquist')
-printf("nyquist plot intersects jw axis at -1 so innerloop is marginally stable")
-outerloop=syslin('c',100*(s+0.1)/(s+10)*(s^3+3*s^2+2*s+6))
-//nyquist(outerloop)
-show_margins(outerloop,'nyquist')
-P=0//no of poles on RHP
-Pw=2//no of poles on jw axis
-theta=-(Z-P-0.5*Pw)*180
-Z=0//for outer loop to be stable
-disp(theta,"theta for stability=")
+//multiple loop systems
+s=%s;
+Z = 0;
+innerloop=syslin('c',6/s*(s+1)*(s+2))
+nyquist(innerloop)
+show_margins(innerloop,'nyquist')
+printf("nyquist plot intersects jw axis at -1 so innerloop is marginally stable")
+outerloop=syslin('c',100*(s+0.1)/(s+10)*(s^3+3*s^2+2*s+6))
+//nyquist(outerloop)
+show_margins(outerloop,'nyquist')
+P=0//no of poles on RHP
+Pw=2//no of poles on jw axis
+theta=-(Z-P-0.5*Pw)*180
+Z=0//for outer loop to be stable
+disp(theta,"theta for stability=")
printf("theta as seen from nyquist plot is same as that required for stability \n hence outer loop is stable") \ No newline at end of file