summaryrefslogtreecommitdiff
path: root/1340/CH7/EX7.11/7_11.sce
blob: f7cd13384e1beac47cc5333750ccc16819b238ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc;
syms K s a;
G = K/(s*(s+a));
E = (1/s^2)/(1+G);
e = limit(s*E,s,0);
e = simple(e);
disp(e,"steady state error = ");
sea = (a/e)*diff(e,a);
sek = (K/e)*diff(e,K);
sea = simple(sea);
sek = simple(sek);
disp(sea,"sensitivity of error wrt parameter a = ");
disp(sek,"\n sensitivity of error wrt parameter K =");