summaryrefslogtreecommitdiff
path: root/1655/CH7/EX7.5.6/Example_7_5_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1655/CH7/EX7.5.6/Example_7_5_6.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1655/CH7/EX7.5.6/Example_7_5_6.sce')
-rwxr-xr-x1655/CH7/EX7.5.6/Example_7_5_6.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1655/CH7/EX7.5.6/Example_7_5_6.sce b/1655/CH7/EX7.5.6/Example_7_5_6.sce
new file mode 100755
index 000000000..f6343040f
--- /dev/null
+++ b/1655/CH7/EX7.5.6/Example_7_5_6.sce
@@ -0,0 +1,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)