summaryrefslogtreecommitdiff
path: root/3665/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3665/CH1/EX1.1/Ex1_1.sce')
-rw-r--r--3665/CH1/EX1.1/Ex1_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3665/CH1/EX1.1/Ex1_1.sce b/3665/CH1/EX1.1/Ex1_1.sce
new file mode 100644
index 000000000..85906a944
--- /dev/null
+++ b/3665/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,20 @@
+clc//
+//
+//
+
+//Variable declaration
+e=1.602*10^-19; //charge of electron(c)
+epsilon0=8.85*10^-12; //permittivity(C/Nm)
+r=3*10^-10; //seperation(m)
+N=6.022*10^20;
+Ea=502; //ionisation energy of A(kJ/mol)
+Eb=-335; //electron affinity for B(kJ/mol)
+
+//Calculation
+E=-e^2*N/(4*%pi*epsilon0*r); //electrostatic attraction(kJ/mol)
+nE=Ea+Eb+E; //net change in energy per mole(kJ/mol)
+
+//Result
+printf("\n net change in energy per mole is %0.0f kJ/mol",nE)
+printf("\n answer varies due to rounding off errors")
+printf("\n since the net change in energy is negative, the A+B- molecule will be stable")