blob: da2e42991487db3a9198d6a004d03e3f13823c84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Caption:transfer_function
// example 3.2.11
//page 45
// we have defined parallel and series function which we are going to use here
//exec parallel.sce;
//exec series.sce;
syms G1 G2 G3 G4 H1 H2 H3;
a=G4/.H1;
//shift the summing point after block G3 towards left of block G3
b=G2/G3;
c=series(a,G3);
d=c/(1+c*H2);
d=simple(d)
//shift the summing point before block G1 towards right of block G1
e=G1*H3;
f=d/(1+d*e);
f=simple(f)
g=parallel(G1,b);
g=simple(g);
y=series(g,f)
y=simple (y);
disp(y,"C(s)/R(s)=");
|