summaryrefslogtreecommitdiff
path: root/2720/CH2/EX2.6.1/ex2_6_1.sce
blob: dceeb048a06d5be5f666697a658d08dac11410c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Exa 2.6.1
clc;
clear;
close;
// Given data
lembda = 11000;// in Å
lembda = lembda * 10^-10;// in m
h = 6.625*10^-34;
c = 3*10^8;// in m/s
e = 1.6*10^-19;// in C
E_g = (h*c)/(lembda*e);// in eV
disp(E_g,"The energy gap in eV is");

// Note: In the book, there is calculation error to evaluate the value of Eg, so the answer in the book is wrong and the answer of coding is correct.