summaryrefslogtreecommitdiff
path: root/1367/CH15/EX15.16/15_16.sce
blob: 5a2dc989f9226b74085db66914f289537d81d05b (plain)
1
2
3
4
5
6
7
8
9
10
//Find Band gap energy
//Ex:15.16
clc;
clear;
close;
c=2.99*10^8;//speed of light in m/s
h=6.62*10^-24;//planck's constant
w=1.771*10^-6;//wavelength in J
eg=h*c/w;//in J
disp(eg,"Band gap energy (in J) = ");