blob: b9833acdf78efb9ca3fbb6795e8753e8d243bbaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Example 4.5, Page number 4.33
clc;clear;close
// variable declaration
W=1.55 // wavelength
// Calculations
E_g=(1.24)/W // Bandgap in eV
// Result
printf("Band gap = %0.1f eV",E_g)
|