summaryrefslogtreecommitdiff
path: root/3845/CH29/EX29.6/Ex29_6.sce
blob: 56114b346b47bc401b0c086b7a9a6acb9a7b41b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example 29.6
E=2.48;//Photon energy (eV), See Example 29.5
E=E*1.60*10^-19;//Photon energy (J)
c=3*10^8;//Speed of light (nm/s)
p1=1.33*10^-27;//Photon momentum (kg.m/s), See Example 29.5
printf('Photon momentum = %0.2e kg.m/s  (p=h/lambda, See Example 29.5)',p1)
p=E/c;//Photon momentum (kg.m/s)
printf('\nPhoton momentum = %0.2e kg.m/s  (p=E/c)',p)
//Answer varies due to round off error
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest