summaryrefslogtreecommitdiff
path: root/1985/CH12/EX12.8/Chapter12_example8.sce
blob: 8b1e9320cb893eb924405801b959ef483054721b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
clear
//Input data
lo=6000*10^-10//Threshold wavelength in m
l=3600*10^-10//Wavelength of the light used in m
h=6.625*10^-34//Plancks constant in J.s
c=3*10^8//Velocity of light in m/s
e=1.6*10^-19//Charge of electron in Columbs

//Calculations
E=(h*c*((1/l)-(1/lo)))/e//Energy of the photoelectrons emitted in eV

//Output
printf('Energy of the photoelectrons emitted is %3.2f eV',E)