//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