blob: d418666ff85c171d79be6161c735a8a66caa5168 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc//
//
//
//Variable declaration
Ev=1;
k=1.38*10^-23; //boltzmann constant(J/K)
e=1.6*10^-19; //charge(eV)
//Calculation
r=Ev/(2.303*1000*k/e);
n=10^r; //ratio of n1000/n500
//Result
printf("\n ratio of vacancies is %0.3f *10^5",n/10^5)
|