blob: b843949ca14bad12e6261dcd5e61c5a56da4f1ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
printf(" Given G(s)=10/(s*(s+2))");
printf("characterstic equation of the given system is 1+G(s)H(s)= s^2+2*s+10=0");
printf("compare it with the standard second order characterstic equation s^2+2*d*w*s+w^2=0");
w=sqrt(10);
d=1/(2*w);
ess1=2*d/w;
disp(d,"damping ratio")
disp(w,"natural frrequency(in rad/sec)=")
disp(ess1,"steady state error without error control = ")
printf("overal transfer function with derivative control is C(s)/R(s)=10/(s^2+(2+K)*s+10))")
printf("characterstic equation of the error control system is s^2+s*(2+K)+10=0");
K=(2*d*w-2)/10;
disp(K,"K=");
ess=0.38
disp(ess,"steady state error=")
|