blob: 7db52ccb9f9b50f805174dd246ebf6edba6bcdb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Example number 11.3, Page number 246
clc;clear;
close;
//Variable declaration
e=1.6*10**-19; //charge(coulomb)
E2_E1=3*e; //energy gap(J)
Kb=1.38*10**-23; //boltzmann constant(J/K)
T=323; //temperature(K)
//Calculation
n=exp(-E2_E1/(Kb*T)); //ratio in higher and lower energy
//Result
printf("ratio in higher and lower energy is %.4e",n)
//answer given in the book is wrong
|