blob: 296858a8829a4522c0e1880df82e54e19057e4f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
clear
//Input data
w=4000//Wavelength of the light in Angstrom units
wf=2.25//Work function of potassium in eV
m=(9.1*10^-31)//Mass of the electron in kg
v=(3*10^8)//Velocity of light in m/s
c=(1.6*10^-19)//Charge of the electron in coloumbs
h=6.626*10^-34//Plancks constant in Js
//Calculations
E=(h*v)/(w*10^-10*c)//Energy of incident photon in eV
KE=(E-wf)//Kinetic energy in eV
//Output
printf('Maximum kinetic energy of photoelectron is %3.3f eV',KE)
|