summaryrefslogtreecommitdiff
path: root/2825/CH12/EX12.1/Ex12_1.sce
blob: 104595d7c7a89514b381f9a3d3331eaf6aba6cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Ex12_1 Pg-587
clc

C1=0.001e-6 //capacitor c1 in farad
C2=0.01e-6 //capacitor c2 in farad
L=5e-6 //inductance in Henry

disp("To maintain vibrations in a colpitts oscilator,")
disp("              hfe >= C2/C1")
hfe=C2/C1 //transistor current gain
printf("                    = %.f \n",hfe)

printf("So the value of hfe of transistor used must be greater \n than 10. \n")
disp("Frequency of oscillations produced")
x=inv(C1)+inv(C2)
y=inv(L)
f=sqrt(x*y)
printf("            = %.1f*1e7 Hz",f*1e-7)
// answer in the book is wrong