summaryrefslogtreecommitdiff
path: root/3665/CH5/EX5.1/Ex5_1.sce
blob: 1c72e385d15e04678cfd0763da0f98e313895134 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc//
//
//

//Variable declaration
k=1.38*10^-23;    //boltzmann constant(J)
T=300;       //temperature(K)
e=1.6*10^-19;     //charge(c)

//Calculation
E=3*k*T/(2*e);     //average thermal energy(eV)

//Result
printf("\n average thermal energy is %0.3f eV",E)