summaryrefslogtreecommitdiff
path: root/181/CH1/EX1.2/example1_2.sce
blob: f52f87f7012fb126839ef0b0072af5042ff8b7f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Calculate semiconductor band gap
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 1-2 in page 7

clear; clc; close;

// Data given
lambda=0.5*10^-6; // Wavelength of emitted light in m
c=3*10^8; // Speed of light in vacuum in m/s
h=1.05*10^-34;// Constant of calculation

// Calculation
E_g= (2*%pi*h*c)/lambda;
A= E_g*10^19/1.6;

printf("The material band gap has to be %0.3f eV",A);

// Result
//The material band gap is 2.474 eV
// Semiconductors like C,BN,GaN,SiC meet this criterion