summaryrefslogtreecommitdiff
path: root/3363/CH10/EX10.1/Ex10_1.sce
blob: 24ef24b9101de1d7dc3a37f77469d360d994b7ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Example 10.1, page 370
clc
E3p=-3//in ev
E3s=-5.1//in ev
E=E3p-E3s
E_Joule=E*1.6*10^-19//in Joule
h=6.6*10^-34//in J-s
c=3*10^8//in m/s
disp('Part a')
lambda=(h*c)/E_Joule
printf("\n The wavelength is  %e  m",lambda)
//Part b
disp('Part b')
d_lambda=(h*c*E_Joule)/(E_Joule)^2
printf("\n The magnitude of seperation is  %e  m",d_lambda)
//Answer given in book for part b is wrong