blob: ef1ab0de1ee56858a73ac95e65ec89bfc35b6562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clc//
//
//
//Variable declaration
FE=10/100; //fermi function
EF=5.5; //energy function(eV)
e=1.6*10^-19; //charge(c)
k=1.38*10^-23; //boltzmann constant(J)
//Calculation
E=EF+(EF/100); //energy(eV)
x=log((1/FE)-1);
T=(E-EF)*e/(k*x); //temperature(K)
//Result
printf("\n temperature is %0.1f K",T)
|