blob: 96968f5419ec988b977d04aa405c3a5177692cfb (
plain)
1
2
3
4
5
6
7
8
|
//Example 19.9//
h=(0.6626*10^-33);//J s //Joule-second //Planck's Constant
c=(0.2998*10^9);//m/s //meters per second //speed of light
l=400*10^-9;//m //meters // Wavelength
a=6.242*10^18;//eV/J //1 Coulomb of charge
E=((h*c)/l)*a
mprintf("E = %f eV",E)
|