summaryrefslogtreecommitdiff
path: root/1427/CH19/EX19.5/19_5.sce
blob: 61fa79dac624e3a0d3076d34e2835e08eda85893 (plain)
1
2
3
4
5
6
7
//ques-19.5
//Calculating wavelength of a moving electron
clc
KE=4.55*10^-25;//kinetic energy (in J)
v=sqrt((2*KE)/(9.1*10^-31));
w=(6.6*10^-34)/(9.1*10^-31*v);
printf("The wavelength of the electron is %.0f nm.",w*10^9);