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 /848/CH3/EX3.2 | |
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 '848/CH3/EX3.2')
-rwxr-xr-x | 848/CH3/EX3.2/Example3_2.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/848/CH3/EX3.2/Example3_2.sce b/848/CH3/EX3.2/Example3_2.sce new file mode 100755 index 000000000..bfb8a1d2c --- /dev/null +++ b/848/CH3/EX3.2/Example3_2.sce @@ -0,0 +1,20 @@ +//clear//
+//Caption: To Calculate input and output power in dBm
+//Example3.2
+//page 91
+clear;
+close;
+clc;
+Pin = 200e-06; //power launched into the fiber
+alpha = 0.4; //attenuation in dB per KM
+z = 30; //optical fiber length 30 KM
+Pin_dBm = 10*log10(Pin/1e-03);
+Pout_dBm = 10*log10(Pin/1e-03)-alpha*z;
+Pout = 10^(Pout_dBm/10)
+disp(Pin_dBm,'Pin_dBm')
+disp(Pout_dBm,'Pout_dBm')
+disp(Pout*1e-03,'Output power in watts')
+//Result
+//Pin_dBm = - 6.9897
+//Pout_dBm = - 18.9897
+//Output power in watts = 0.0000126
|