diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2825/CH18/EX18.3/Ex18_3.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2825/CH18/EX18.3/Ex18_3.sce')
-rwxr-xr-x | 2825/CH18/EX18.3/Ex18_3.sce | 20 |
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
|