summaryrefslogtreecommitdiff
path: root/3281/CH5/EX5.5/ex5_5.sce
blob: bb17ab81653f771a0c3f6b337c6a5e2e5087f469 (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
37
38
39
//Page Number: 291
//Example 5.5
clc;
//Given
f=3D+9; //hz
v=900; //V
i=30D-3; //A
d=4; //cm
d1=d/100; //m
gap=1; //mm
gap1=1/1000; //m
rsh=40D+3; //ohm
x=1.841;
j1x=0.582;
r=40D+3; //ohm
ebym=1.758D+11; //J

//(i) Electron velocity
v0=sqrt(2*ebym*v);
disp('m/s',v0,'Electron velocity:');

//(ii) Electron transit time
t=d1/v0;
disp('s',t,'Electron transit time:');

//(iii) Input voltage gap
w=2*%pi*f;
theta0=(w*d1)/v0;
thetag=(w*gap1)/v0;
bet=sin(thetag/2)/(thetag/2);
v2=(2*v*x)/(bet*theta0);
disp('V',v2,'Input voltage gap:');

//(iv) Voltage gain
av=(bet^2*theta0*j1x*rsh)/(x*r);
disp(av,'Voltage gain:');

//Values of v and f are changed in question and answer, hence vaules used in answer are taken.
//Also second part has not been done in book