summaryrefslogtreecommitdiff
path: root/3651/CH4/EX4.4/4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3651/CH4/EX4.4/4.sce')
-rw-r--r--3651/CH4/EX4.4/4.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3651/CH4/EX4.4/4.sce b/3651/CH4/EX4.4/4.sce
new file mode 100644
index 000000000..3e98c58df
--- /dev/null
+++ b/3651/CH4/EX4.4/4.sce
@@ -0,0 +1,9 @@
+//Variable declaration
+kT=1;
+E_EF=1;
+
+//Calculations
+p_E=1/(1+exp(E_EF/kT))
+
+//Result
+printf('p(E) =%0.3f \n ',(p_E)) \ No newline at end of file