summaryrefslogtreecommitdiff
path: root/1004/CH2/EX2.4/Ch02Ex4.sci
blob: 50e5ed53ef3228798451899618cb88feb72bed10 (plain)
1
2
3
4
5
6
7
8
9
10
// Scilab Code Ex2.4 Longest wavelength of incident radiation: Pg:45 (2008)
h = 6.624e-034;    // Planck's constant, Js
c = 3e+08;    // Speed of light, m/s
e = 1.6e-019;    // Energy equivalent of 1 eV, joule/eV
phi = 6*e;       // Work function of metal, joule
f0 = phi/h;    // Threshold frequency for metal surface, Hz
L0 = c/f0;     // Threshold (Longest) wavelength for metal, m
printf("\nThe longest wavelength of incident radiation = %4d angstrom", L0/1e-010);
// Result 
// The longest wavelength of incident radiation = 2070 angstrom