summaryrefslogtreecommitdiff
path: root/3543/CH6/EX6.31/EX6_31.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3543/CH6/EX6.31/EX6_31.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 '3543/CH6/EX6.31/EX6_31.sce')
-rw-r--r--3543/CH6/EX6.31/EX6_31.sce44
1 files changed, 44 insertions, 0 deletions
diff --git a/3543/CH6/EX6.31/EX6_31.sce b/3543/CH6/EX6.31/EX6_31.sce
new file mode 100644
index 000000000..d18d101a7
--- /dev/null
+++ b/3543/CH6/EX6.31/EX6_31.sce
@@ -0,0 +1,44 @@
+// Example 6.31
+// Calculation of a)peak photocurrent , b)shot noise and c)mean square shot noise current
+// Page no 489
+
+clc;
+clear;
+close;
+
+//Given data
+n=0.7; // Efficiency
+lambda=0.9*10^-6; // Wavelength
+R=5*10^3; // Load resistance
+I=2*10^-9; // Dark current
+P=300*10^-6; // Incident power
+B=15*10^6; // Bandwidth
+T=298; // Room temperature
+h=6.62*10^-34;
+c=3*10^8;
+e=1.602*10^-19; // Charge of an electron
+k=1.381*10^-23; // Boltzman constant
+
+// a)Peak photocurrent
+I=(n*P*e*lambda)/(h*c);
+I=I*10^6;
+
+//b) Shot noise and mean square shot noise current
+s=2*e*B*(2+I);
+s=s*10^11;
+
+//c) mean square shot noise current
+t=(4*k*T*B)/R;
+t=t*10^17;
+
+
+
+
+//Displaying results in the command window
+printf("\n Peak photocurrent (in nA)= %0.3f ",I);
+printf("\n Shot noise(in 10^-20 A)0 = %0.1f ",s);
+printf("\n Mean square shot noise current(in 10^-17 A) = %0.2f ",t);
+
+
+
+// The answers vary due to round off error