summaryrefslogtreecommitdiff
path: root/1151/CH11/EX11.2/example2.sce
blob: c398f90f63006956ae48e5d0465b38aa0fd3b8cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
printf("characterstic equation of the given system is s^2+1.4*s+14=0");
printf("compare it with the standard second order characterstic equation s^2+2*d*w*s+w^2=0");
w=sqrt(14);
d=1.4/(2*w);
d1=.7;
Kt=2*(d1-d)/w;
ess1=2*d/w;
disp(d,"damping ratio")
disp(w,"natural frrequency(in rad/sec)=")
disp(ess1,"steady state error without derivative control = ")
printf("overal transfer function with derivative control is C(s)/R(s)=w^2/(s^2+(2dw+w^2Kt)*s+w^2)=14/(s^2+5.23*s+14")
disp(Kt,"Kt=")
rt=(%pi-atan(sqrt((1-d1)/d1)))/(w*sqrt(1-d1^2));
pt1=%pi/(w*sqrt(1-d1^2));
mo1=exp((-%pi*d1)/sqrt(1-d1^2))*100;
ess2=2*d1/w+Kt;
disp(pt1,"peak time(in sec)for sytem with derivative control is")
disp(rt,"rise time(in sec)for sytem with derivative control is")
disp(mo1,"maximum overshoot(in %)for sytem with derivative control is")
disp(ess2,"steady state error with derivative control = ")