blob: 31b7272a0e3a63f5597228519de49d985c09af6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clc//
//
//
//Variable declaration
x=0.6532;
y=0.3010;
T1=273+20; //temperature(K)
T2=273+32; //temperature(K)
k=8.616*10^-5;
//Calculation
dy=x-y;
dx=(1/T1)-(1/T2);
Eg=2*k*dy/dx; //energy band gap(eV)
//Result
printf("\n energy band gap is %0.3f eV",Eg)
printf("\n answer varies due to rounding off errors")
|