summaryrefslogtreecommitdiff
path: root/3755/CH4/EX4.2/Ex4_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3755/CH4/EX4.2/Ex4_2.sce')
-rw-r--r--3755/CH4/EX4.2/Ex4_2.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3755/CH4/EX4.2/Ex4_2.sce b/3755/CH4/EX4.2/Ex4_2.sce
new file mode 100644
index 000000000..963718ecc
--- /dev/null
+++ b/3755/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,18 @@
+clear
+//
+//
+//
+
+//Variable declaration
+T=273+25; //temperature(K)
+m=4;
+n=5*10^11; //density(per m^3)
+V=(2*2.82*10^-10)^3; //volume(m^3)
+kB=8.625*10^-5;
+
+//Calculations
+N=m/V;
+Ep=2*kB*T*log(N/n);
+
+//Result
+printf("\n energy required is %0.3f eV",Ep)