summaryrefslogtreecommitdiff
path: root/1655/CH7/EX7.5.6/Example_7_5_6.sce
blob: f6343040f1fdb1efc1228faf2db8ea5bfffb2156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Example 7.5.6  page 7.26

clc;
clear;

h=6.626d-34;    //plank's constant
c=3d8;      //speed of light
q=1.6d-19;  //charge of electron
E=1.35;      //energy gap in eV

lamda=h*c/(q*E);   //computing wavelength
lamda=lamda*10^6;

printf("\nThe InP photodetector will stop operation above %.2f micrometer.",lamda);
printf("\nNOTE - calculation error in the book");

//calculation error in the book
//answer in the book 1.47 micrometer.(incorrect)