diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1655/CH8/EX8.3.2/Example_8_3_2.sce | |
download | Scilab-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/CH8/EX8.3.2/Example_8_3_2.sce')
-rwxr-xr-x | 1655/CH8/EX8.3.2/Example_8_3_2.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/1655/CH8/EX8.3.2/Example_8_3_2.sce b/1655/CH8/EX8.3.2/Example_8_3_2.sce new file mode 100755 index 000000000..2450424e1 --- /dev/null +++ b/1655/CH8/EX8.3.2/Example_8_3_2.sce @@ -0,0 +1,22 @@ +// Example 8.3.2 page 8.11
+
+clc;
+clear;
+
+SN_dB=60; //signal to noise ratio
+h=6.626d-34 //plank's constant
+c=3d8; //speed of light
+lamda=1.3d-6; //wavelength
+eta=1;
+B=6.5d6; //Bandwidth
+
+SN=10^(SN_dB/10);
+f=c/lamda
+Popt= 2*SN*h*f*B/eta; //computing optical power
+Popt_dB = 10 * log10(Popt) + 30; //optical power in dbm
+Popt=Popt*10^6;
+printf("\nIncident power required to get an SNR of 60 dB at the receiver is %.4f microWatt or %.3f dBm",Popt,Popt_dB);
+printf("\nNOTE - Calculation error in the book.\nThey have take SN as 10^5 while calculating, which has lead to an error in final answer");
+
+//Calculation error in the book.They have take SN as 10^5 while calculating, which has lead to an error in final answer
+//answer in the book 198.1nW and -37.71 dBm
|