summaryrefslogtreecommitdiff
path: root/3845/CH29/EX29.7/Ex29_7.sce
blob: 01e46d4259cb5a1617cff782ff29585baecb7e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 29.7
lambda=0.167*10^-9;//de Broglie wavelength (m)
h=6.63*10^-34;//Planck's constant (J.s)
m=9.11*10^-31;//Mass of an electron (kg)
v=h/(m*lambda);//Electron's velocity (m/s)
printf('a.Velocity of the electron = %0.2e m/s',v)
KE=(1/2)*m*v^2;//Kinetic energy (J)
KE=KE*1/(1.602*10^-19);//Kinetic energy (eV)
printf('\nb.Kinetic energy of the electron = %0.1f eV',KE)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest