summaryrefslogtreecommitdiff
path: root/3768/CH1/EX1.7/Ex1_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH1/EX1.7/Ex1_7.sce')
-rw-r--r--3768/CH1/EX1.7/Ex1_7.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3768/CH1/EX1.7/Ex1_7.sce b/3768/CH1/EX1.7/Ex1_7.sce
new file mode 100644
index 000000000..ced71bc2e
--- /dev/null
+++ b/3768/CH1/EX1.7/Ex1_7.sce
@@ -0,0 +1,19 @@
+//Example number 1.7, Page number 12
+
+clc;clear;
+close;
+
+//Variable declaration
+e=1.6*10**-19; //charge(coulomb)
+epsilon0=8.85*10**-12;
+r=0.5*10**-9; //distance(m)
+I=5; //ionisation energy(eV)
+E=4; //electron affinity(eV)
+
+//Calculation
+C=e**2/(4*%pi*epsilon0*e*r); //coulomb energy(eV)
+Er=I-E-C; //energy required(eV)
+
+//Result
+printf( "energy required is %.1f eV",Er)
+