summaryrefslogtreecommitdiff
path: root/1151/CH2/EX2.23/example23.sce
blob: dadde6f2d9b4a92fbc9eb04c273d7fdcf1a1a8e0 (plain)
1
2
3
4
5
6
7
8
9
10
printf("closed loop transfer function C(s)/R(s)=w^2/(s^2+2*d*w*s+w^2)");
printf("characterstic equation of this system is s^2+2*d*w*s+w^2=0");
printf("compare it with the standard second order characterstic equation s^2+2*d*w*s+w^2=0");
printf("we have to determine w and d given maximum overshoot=0.05 and settling time =2 sec");
t=2;
d1=log(0.05);
d=sqrt(d1^2/(d1^2+%pi^2));
w=4/(d*t);
disp(d,"damping ratio:");
disp(w,"natural undamped frequency (in rad/sec):")