summaryrefslogtreecommitdiff
path: root/1172/CH3/EX3.8.1/Example3_8a.sce
blob: c9f0577ece36ee3644404bab1a1f8c0230b66ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clc
//Given that
lambda = 4.3e-7 // wavelength of light in meter
phi_Ni = 5 // work function of nickel in eV
h = 6.624e-34 // plank's constant
c = 3e8 // speed of light
m_e = 9.1e-31 // mass of electron in kg
//Sample Problem 8a Page No. 138
printf("\n\n\n # Problem 8a # \n")
lambda_threshold = h * c / (phi_Ni*1e-19) //calculation of longest wavelength required
if (lambda_threshold < lambda) then
    printf("\n As the threshold wavelength is less than wavelength of incident radiation \n So electron will not be ejected \n")
else 
    v = sqrt((2* h * c *(lambda - lambda_threshold)) / (m * lambda_threshold * lambda ))) //calculation of ejected velocity Electron
    printf("\n As the threshold wavelength is greater than wavelength of incident radiation So electron will be ejected with velocity %e. ",v)
end