summaryrefslogtreecommitdiff
path: root/3768/CH1/EX1.7/Ex1_7.sce
blob: ced71bc2ef2280441ef140fdca75b30e9db0bdfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)