summaryrefslogtreecommitdiff
path: root/226/CH19/EX19.27/example27_sce.sce
blob: 8f3aad99522ee266f95064b3ab727daa1ca98dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//chapter 19
//example 19.27
//page 883
printf("\n")
printf("given")
Rw=.1;f=1*10^6;Lp=19.5*10^-6;Rl=1.2*10^3;Vcc=30;Idc=12.3*10^-3;Vce=0.5;
Vp=Vcc-Vce;
Po=((Vp)^2) /(2*Rl);
QL=(2*3.14*f*Lp)/Rw
Qp=Rl/(2*3.14*f*Lp)
B=f/Qp
Il=(.707*Vp)/(2*3.14*f*Lp)
Pl=(Il)^2 *Rw
Pi=(Vcc*Idc)+Pl
n=(Po/Pi)*100