summaryrefslogtreecommitdiff
path: root/3768/CH3/EX3.15/Ex3_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH3/EX3.15/Ex3_15.sce')
-rw-r--r--3768/CH3/EX3.15/Ex3_15.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3768/CH3/EX3.15/Ex3_15.sce b/3768/CH3/EX3.15/Ex3_15.sce
new file mode 100644
index 000000000..fb2beaf8d
--- /dev/null
+++ b/3768/CH3/EX3.15/Ex3_15.sce
@@ -0,0 +1,16 @@
+//Example number 3.15, Page number 52
+
+clc;clear;
+close;
+
+//Variable declaration
+KbT=0.025;
+nbyN=1/10**10; //concentration
+N=10**29;
+//Calculation
+x=2*KbT;
+Ev=x*log(1/nbyN); //value of concentration(eV)
+n=1/((N*nbyN)**(1/3)); //average seperation(m)
+//Result
+printf("value of concentration is %.1f eV",Ev)
+printf("\n average seperation is %.2e m",n)