summaryrefslogtreecommitdiff
path: root/1271/CH14/EX14.18/example14_18.sce
blob: bcb17394877ef5104d0189c2933b40ff4116bcc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc 
// Given that
w = 2.3 // work function of sodium in eV
h = 6.62e-34 // Planck constant in J-sec
c = 3e8 // speed of light in m/sec
e = 1.6e-19 // charge on an electron in C
// Sample Problem 18 on page no. 14.26
printf("\n # PROBLEM 18 # \n")
printf("Standard formula used \n ")
printf(" E = (h * c)/ lambda \n")
lambda = ((h * c) / w) * (1 / e)
printf("\n Longest wavelength required for photoemission is %f Angstrom",lambda * 1e10)