summaryrefslogtreecommitdiff
path: root/3822/CH6/EX6.8/Ex6_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3822/CH6/EX6.8/Ex6_8.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3822/CH6/EX6.8/Ex6_8.sce')
-rw-r--r--3822/CH6/EX6.8/Ex6_8.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3822/CH6/EX6.8/Ex6_8.sce b/3822/CH6/EX6.8/Ex6_8.sce
new file mode 100644
index 000000000..832393bc4
--- /dev/null
+++ b/3822/CH6/EX6.8/Ex6_8.sce
@@ -0,0 +1,24 @@
+
+//OptoElectronics and Fibre Optics Communication, by C.K Sarkar and B.C Sarkar
+//Example 6.8
+//OS=Windows 10
+////Scilab version Scilab 6.0.0-beta-2(64 bit)
+clc;
+clear;
+
+//given
+Ic=16e-3;//collector current in mA
+P=130e-6;//incident power in microwatts
+lamda=1.25e-6;//wavelength in micrometer
+h=6.62e-34;//plank's constant in S.I units
+c=3e8;//velocity of light in m/s
+
+//case 1:
+u=h*c*Ic;
+v=lamda*P*1.6e-19;
+Go=u/v;//optical gain of the photo transistor
+//case 2:
+hFE=Go/0.45;//common emitter current gain
+mprintf("\n optical gain of phototransistor Go is=%.2f",Go);
+mprintf("\n common emitter current gain hFE is=%.2f",hFE);
+//Answers are different due to roundingoff error