summaryrefslogtreecommitdiff
path: root/3768/CH6/EX6.7/Ex6_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH6/EX6.7/Ex6_7.sce')
-rw-r--r--3768/CH6/EX6.7/Ex6_7.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3768/CH6/EX6.7/Ex6_7.sce b/3768/CH6/EX6.7/Ex6_7.sce
new file mode 100644
index 000000000..d882db653
--- /dev/null
+++ b/3768/CH6/EX6.7/Ex6_7.sce
@@ -0,0 +1,17 @@
+//Example number 6.7, Page number 119
+
+clc;clear;
+close;
+
+//Variable declaration
+Kb=1.38*10**-23; //boltzmann constant(J/k)
+T=303; //temperature(K)
+e=1.6*10**-19; //charge(c)
+MH=2*1.008*1.67*10**-27; //mass(kg)
+//Calculation
+KE=3*Kb*T/(2*e); //kinetic energy(eV)
+cbar=sqrt(3*Kb*T/MH); //velocity(m/s)
+//Result
+printf("kinetic energy is %.1e eV",KE)
+printf("\n velocity is %.2f m/s",cbar)
+//answer given in the book is wrong