diff options
Diffstat (limited to '1952/CH2/EX2.1')
-rwxr-xr-x | 1952/CH2/EX2.1/Ex2_1.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1952/CH2/EX2.1/Ex2_1.sce b/1952/CH2/EX2.1/Ex2_1.sce new file mode 100755 index 000000000..79d642f0b --- /dev/null +++ b/1952/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,11 @@ +// chapter 2 , Example2 1 , pg 52
+lam=590*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)
|