summaryrefslogtreecommitdiff
path: root/257/CH5/EX5.15/example_5_15.sce
blob: 3cf95c9c648313cff968c2f6e0e05a3d42104fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
s=%s

 //to find C/E

a=10/(s*(s+1))
b=a/(1+(a*0.5*s))
c=b*(s+4)                          //shifting the summer to the left 

//(s^2+6*s)/(10*(s+4)) * C == E + 3/(s+4)*(E+C)
Y= 10*(s+7)/(s^2+6*s-30)               //solving the above equation

disp(Y,"C/E = ")

// to find C/R

d=c/(1+c*1)                           //using the associative law, exchange two summing points
e=1+(3/(s+4))
X= d*e

disp(X," C/R = ")

// to find C/N if r(s)=0

x= (-0.5*s)-(s+4)
k=10/(s*(s+1))
f=k*x                 //removing the summing point
V=1/(1-f)
disp(V,"C/N = ")