summaryrefslogtreecommitdiff
path: root/3020/CH11/EX11.2/ex11_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3020/CH11/EX11.2/ex11_2.sce')
-rwxr-xr-x3020/CH11/EX11.2/ex11_2.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3020/CH11/EX11.2/ex11_2.sce b/3020/CH11/EX11.2/ex11_2.sce
new file mode 100755
index 000000000..bbbb796ad
--- /dev/null
+++ b/3020/CH11/EX11.2/ex11_2.sce
@@ -0,0 +1,10 @@
+clc;
+clear all;
+T = 523; // Temperature in kelvin
+c = 3e8;// Velocity of air
+h = 6.626e-34; // Planck's constant
+k = 1.38e-23; // Boltzmann's constant
+e = 1.602e-19; // Charge of an electron
+lambda = 5900e-10; // Wavelength of light in meters
+r = exp(-((h*c)/(k*T*lambda))); // R =(N2/N1) Ratio between the atoms in the first excited state and ground state
+disp('',r,'Ratio between the atoms in the first excited state and ground state')