summaryrefslogtreecommitdiff
path: root/3755/CH4/EX4.2/Ex4_2.sce
blob: 963718ecc5ae59acf68a9f7ed820d40f9ecf4af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear
//
//
//

//Variable declaration    
T=273+25;     //temperature(K)
m=4;      
n=5*10^11;    //density(per m^3)
V=(2*2.82*10^-10)^3;     //volume(m^3)
kB=8.625*10^-5;

//Calculations
N=m/V;
Ep=2*kB*T*log(N/n);

//Result
printf("\n energy required is %0.3f eV",Ep)