summaryrefslogtreecommitdiff
path: root/3768/CH11/EX11.3/Ex11_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH11/EX11.3/Ex11_3.sce')
-rw-r--r--3768/CH11/EX11.3/Ex11_3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3768/CH11/EX11.3/Ex11_3.sce b/3768/CH11/EX11.3/Ex11_3.sce
new file mode 100644
index 000000000..7db52ccb9
--- /dev/null
+++ b/3768/CH11/EX11.3/Ex11_3.sce
@@ -0,0 +1,15 @@
+//Example number 11.3, Page number 246
+
+clc;clear;
+close;
+
+//Variable declaration
+e=1.6*10**-19; //charge(coulomb)
+E2_E1=3*e; //energy gap(J)
+Kb=1.38*10**-23; //boltzmann constant(J/K)
+T=323; //temperature(K)
+//Calculation
+n=exp(-E2_E1/(Kb*T)); //ratio in higher and lower energy
+//Result
+printf("ratio in higher and lower energy is %.4e",n)
+//answer given in the book is wrong