summaryrefslogtreecommitdiff
path: root/3161/CH3/EX3.7/Ex3_7.sce
blob: 3672376faf4457a5b761fc7834cce1a49b6ceb9a (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
29
30
31
32
33
34
35
36
clc;
//page 185
//problem 3.7

//Given input inmedance of matching networkis R1 = 10 ohm & output impedance of matching networ is R2 = 50 ohm & carrier frequency is fc = 500 KHz
R1 = 10
R2 = 50
fc = 500000

//Wc = 2*pi*fc
Wc = 2*%pi*fc

//AS R1 = R2*(X2^2)/[(R2^2)+(X2^2)], X2 = 25ohm
X2 = 25

//AS X1 = (R2^2)*X2/[(R2^2)+(X2^2)] & R1>R2, X1 = -20ohm
X1 = -20

//|X1| = |jwL| = wL = 20 & |X2| = |1/jwC| = 1/wC = 25, so |X1*X2| = L/C = 500 denotes as LC_div
LC_div = 500

//Wc^2 = 1/(L*C). LC is denoted as LC_prod
LC_prod = 1/(Wc^2)

//In the textbook the calculated LC = 10^-3, in reality the value of LC = 1.013D-13
 
L = sqrt(LC_div*LC_prod)

//In the textbook the calculated L^2 = 50*10^-14, in reality the value of L^2 = 5.066D-11  
 
C = L/500

//In the textbook the calculated C = 1.4*10^-9, in reality the value of C = 1.424D-08  

disp('Inductance '+string(L)+' H')
disp('Capacitance '+string(C)+' F')