summaryrefslogtreecommitdiff
path: root/3411/CH6/EX6.4.u1/Ex6_4_u1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3411/CH6/EX6.4.u1/Ex6_4_u1.sce')
-rw-r--r--3411/CH6/EX6.4.u1/Ex6_4_u1.sce11
1 files changed, 6 insertions, 5 deletions
diff --git a/3411/CH6/EX6.4.u1/Ex6_4_u1.sce b/3411/CH6/EX6.4.u1/Ex6_4_u1.sce
index 4fd13fc06..c6a887e99 100644
--- a/3411/CH6/EX6.4.u1/Ex6_4_u1.sce
+++ b/3411/CH6/EX6.4.u1/Ex6_4_u1.sce
@@ -2,11 +2,12 @@
clc();
clear;
//To calculate the ratio of populations of two energy levels
-h=6.63*10^-34
-c=3*10^8
-lamda=694.3*10^-9
-kb=1.38*10^-23
-T=300
+h=6.63*10^-34 //units in m^2 kg s^-1
+c=3*10^8 //units in meter/sec
+lamda=694.3 //units in nm
+lamda=lamda*10^-9 //units in meters
+kb=1.38*10^-23 //units in m^2 kg s^-2 K^-1
+T=300 //units in K
n1_n2=exp((h*c)/(lamda*kb*T))
printf("The ratio of Populations of two energy levels is N1/N2=")
disp(n1_n2);