summaryrefslogtreecommitdiff
path: root/1985/CH12/EX12.7/Chapter12_example7.sce
blob: c32a4639675451ba88bbd6ba8cc6e452f33d0c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear
//Input data
lo=3200*10^-10//Threshold wavelength 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
W=((h*c)/(lo*e))//Work function of platinum in eV

//Output
printf('The photoelectric workfunction for platinum is %3.4f eV',W)