summaryrefslogtreecommitdiff
path: root/3651/CH7/EX7.5/5.sce
blob: 8e1073ec25fe2d96b9d23ee4c3aadcaedd9445bc (plain)
1
2
3
4
5
6
7
8
9

//variable declaration
W=1.55                       //wavelength

//Calculations
E_g=(1.24)/W                 //Bandgap in eV           

//Result
printf('Band gap = %0.3f    eV \n',E_g)