summaryrefslogtreecommitdiff
path: root/3535/CH2/EX2.3/Ex2_3.sce
blob: f9798dba39b7db2f37582cea6aad44a5d10f6979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Chapter 2, Example 2.3, Page 37
clc
clear
//maximum wavelength of light required to liberate photoelectrons 
A = 2.35 //eV
h = 4.136*10**-15 // eV/s^-1
c = 2.998*10**8 // m/s
v = A/h
w = c/v
printf("v-min = %e s^-1",v);
printf("\n Maximum wavelength = %f nm which corresponds to green",w*10**9);

//Answers may vary due to round off error