summaryrefslogtreecommitdiff
path: root/24/CH29/EX29.5/Example29_5.sce
blob: 7b4fd5524353cc05d3e0643569da94626562b84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Given that
f = 12*10^6  //in Hz
R = 53*10^-2  //in m
q = 1.6*10^-19  //in C
m = 3.34*10^-27  //in kg

//Sample Problem 29-5a
printf("**Sample Problem 29-5a**\n")
B = 2*%pi*m*f/q
printf("The magnitude of magnetic field should be %fT\n", B)

//Sample Problem 29-5b
printf("\n**Sample Problem 29-5b**\n")
v = q*B*R/m
K = 0.5*m*v^2
printf("The kinetic energy of the deuteron will be %eJ", K)