blob: 3bea29a04b1dbfaf7596951f29227fbaf55555b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
exec('degree_rad.sci', -1)
//Given that
e = 1.6*10^-19
K = 22.5*e //in J
B = 4.55*10^-4 //in T
theta = dtor(65.5)
m = 9.11*10^-31 //in kg
//Sample Problem 29-4
printf("**Sample Problem 29-4**\n")
q = e
v = sqrt(2*K/m)
r = m*v*sin(theta)/(q*B)
T = 2*%pi*r/(v*sin(theta))
p = v*cos(theta)*T
printf("The pitch of the electron is equal to %fm", p)
|