summaryrefslogtreecommitdiff
path: root/1952/CH12/EX12.2/Ex2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1952/CH12/EX12.2/Ex2.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1952/CH12/EX12.2/Ex2.sce')
-rwxr-xr-x1952/CH12/EX12.2/Ex2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1952/CH12/EX12.2/Ex2.sce b/1952/CH12/EX12.2/Ex2.sce
new file mode 100755
index 000000000..399a89710
--- /dev/null
+++ b/1952/CH12/EX12.2/Ex2.sce
@@ -0,0 +1,11 @@
+// Additional solved examples , Example 2 , pg 330
+lam=500*10^-9//wavelength(in m)
+T=250+273 //temperature(in kelvin) (converting celsius into kelvin)
+k=1.38*10^-23//boltzman constant (in (m^2*Kg)/(s^2*k))
+h=6.625*10^-34//plancks constant(in Js)
+c=3*10^8//speed of light
+N=exp(-(h*c)/(lam*k*T)) //N=(n2/n1)=relative population of atoms in the 1st excited state and in ground state
+//n1=number of atoms in ground state
+//n2=number of atoms in excited state
+printf("Relative population of Na atoms in the 1st excited state and in ground state\n")
+disp(N)