summaryrefslogtreecommitdiff
path: root/1340/CH7/EX7.2/7_2.sce
blob: 1a8421b8d6ed745023b397f843d89652200f337b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc;
s = %s;
G = syslin('c',120*(s+2)/((s+3)*(s+4)));disp(G,"G(s)=");
syms t s;
R = laplace(5,t,s);
E = R/(1+G);
sse = limit(s*E,s,0);disp(sse,"Steady state error for step input:");
R = laplace(5*t,t,s);
E = R/(1+G);
sse = limit(s*E,s,0);disp(sse,"Steady state error for ramp input:");
R = laplace(5*t^2,t,s);
E = R/(1+G);
sse = limit(s*E,s,0);disp(sse,"Steady state error for parabola input:");
printf("for TYPE-0 systems steady state error for ramp and parabola inputs is Infinity")