summaryrefslogtreecommitdiff
path: root/1151/CH3/EX3.3/example3.sce
blob: 6f63bc25b76c07f4616cd309c3538480e40aa510 (plain)
1
2
3
4
5
6
7
8
9
 // g i v e n G(s)H(s) =K/ s (s+20) H(s)=1   R(s)=1/s^2
G =1+400/(s*(s+20));
h=1/G;
r=1/s^2;
e= 0.05;
disp (e," Steady state error=")
//if ess=0.02 then k=?
k=20/0.02;
disp(k,"K=");