summaryrefslogtreecommitdiff
path: root/3651/CH1/EX1.5/Ex1_5.sce
blob: 0f5c737f80791aa1e61a7b8c18eed9f4487b3955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//variable declaration
I=5.14;                    //Ionization energy
A=3.65;                    //Electron Affinity
e=(1.6*10**-19);
E=8.85*10**-12; 
//calculations
E_c=I-A                        //Energy required
r=e**2/(4*%pi*E*E_c*e)     //Distance of separation

//Result
printf('Energy required=%0.2f eV \n",E_c)
printf('Distance of separation =%0.2f Angstrom",r/10**-10)