summaryrefslogtreecommitdiff
path: root/2183/CH8/EX8.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2183/CH8/EX8.5
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 '2183/CH8/EX8.5')
-rwxr-xr-x2183/CH8/EX8.5/Ex_8_5.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2183/CH8/EX8.5/Ex_8_5.sce b/2183/CH8/EX8.5/Ex_8_5.sce
new file mode 100755
index 000000000..e3d70c069
--- /dev/null
+++ b/2183/CH8/EX8.5/Ex_8_5.sce
@@ -0,0 +1,20 @@
+// Example 8.5;//minumum incident optical power
+clc;
+clear;
+close;
+nmax=732;//
+c=3*10^8;//m/s
+ht=6.62*10^-34;//plank constt.
+B=10^7;//NO. OF BITS
+h=1*10^-6;//wavelength in meter
+Po=((nmax*ht*B*c)/(2*h))*10^12;//pulse energy in pico Watt
+Podb=10*(log10(Po));//pulse energy in dB when refrence level is one Watt
+Podb1=10*(log10(Po*10^-9));//pulse energy in dB when refrence level is one mili Watt
+disp(Podb1 , "pulse energy at bit rate of 10 M bit s^-1 in dBm")
+B1=14*10^7;//NO. OF BITS
+Po1=((nmax*ht*B1*c)/(2*h))*10^12;//pulse energy in pico Watt
+Podb1=10*(log10(Po1));//pulse energy in dB when refrence level is one Watt
+Podb2=10*(log10(Po1*10^-9));//pulse energy in dB when refrence level is one mili Watt
+disp(Podb2 , "pulse energy at bit rate of 140 M bit s^-1 in dBm")
+//at 10 M bit s^-1 power is calc ulated wrong in the book
+