summaryrefslogtreecommitdiff
path: root/29/CH6/EX6.10.16
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /29/CH6/EX6.10.16
downloadScilab-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/CH6/EX6.10.16')
-rwxr-xr-x29/CH6/EX6.10.16/exa6_10_16.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/29/CH6/EX6.10.16/exa6_10_16.sce b/29/CH6/EX6.10.16/exa6_10_16.sce
new file mode 100755
index 000000000..f30f80961
--- /dev/null
+++ b/29/CH6/EX6.10.16/exa6_10_16.sce
@@ -0,0 +1,25 @@
+//caption:determine_Wn,zeta_and_Mp
+//example 6.10.16
+//page 187
+s=%s;
+num=1;
+den=sym('s*(1+0.5*s)*(1+0.2*s)');
+c=num/den;
+c=simple(c);
+disp(c,"C(s)/E(s)=");
+G=c;
+H=1;
+CL=G/(1+G*H);
+CL=simple(CL);
+disp(CL,"C(s)/R(s)=");
+A=pfss((10/(s^3+7*s^2+10*s+10)));
+d=denom(A(1));
+b=coeff(denom(A(1)))
+printf("for oscillatory roots:")
+Wn=sqrt(b(1,1));//natural_frequency
+//2*zeta*Wn=1.5;
+zeta=1.5/(2*Wn);//damping ratio
+Mp=exp((-zeta*%pi)/sqrt(1-zeta^2))*100;//%_peak_overshoot
+disp(Wn,"natural_frequency=");
+disp(zeta,"damping ratio=");
+disp(Mp,"%_peak_overshoot="); \ No newline at end of file