summaryrefslogtreecommitdiff
path: root/3411/CH6/EX6.4.u1/Ex6_4_u1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /3411/CH6/EX6.4.u1/Ex6_4_u1.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
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);