summaryrefslogtreecommitdiff
path: root/273/CH4/EX4.2/ex4_2.sce
blob: 322577ac2e108e03d0abe4fcbe91fe76e33ad62a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc;clear;
//Example 4.2
//electrostatic deflection
//given values
V1=2000;//in volts,potential difference through which electron beam is accelerated
l=.04;//length of rectangular plates
d=.015;//distance between plates
V=50;//potential difference between plates
//calculations
alpha=atan(l*V/(2*d*V1))*(180/%pi);//in degrees
disp(alpha,'angle of deflection of electron beam is:');
v=5.93*10^5*sqrt(V1);//horizontal velocity in m/s
t=l/v;//in s
disp(t,'transit time through electric field is:')