summaryrefslogtreecommitdiff
path: root/2825/CH18/EX18.3
diff options
context:
space:
mode:
Diffstat (limited to '2825/CH18/EX18.3')
-rwxr-xr-x2825/CH18/EX18.3/Ex18_3.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2825/CH18/EX18.3/Ex18_3.sce b/2825/CH18/EX18.3/Ex18_3.sce
new file mode 100755
index 000000000..bf3eabb7c
--- /dev/null
+++ b/2825/CH18/EX18.3/Ex18_3.sce
@@ -0,0 +1,20 @@
+//Ex18_3 Pg-946
+clc
+
+disp("Average wavelength of visible radiation = 550 nm")
+disp(" E1 - E2 = hc/lamda")
+h=6.6*10^(-34) //planck constant
+c=3*10^(8) //speed of light in sec
+lamda= 550*10^(-9) //wavelength in m
+E=h*c/lamda //difference in energy levels in Joules
+e=1.6*10^(-19) //electron charge in eV
+E_eV=E/e //difference in energy levels in electronVolt
+printf(" = %.1f*1e-19 J \n",E*1e19)
+printf(" = %.2f eV \n",E_eV)
+
+T=300 //temperature in Kelvin
+k=1.38*10^(-23) //Boltzmann constant
+disp("Average room temperature=300K and g1=g2,we have")
+N=exp((-E)/(k*T))
+printf(" N2/N1 = %.2f*1e-37",N*1e37)
+//answer in the book is wrong