From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 848/CH3/EX3.2/Example3_2.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 848/CH3/EX3.2/Example3_2.sce (limited to '848/CH3/EX3.2') 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 -- cgit