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 --- 401/CH12/EX12.5/Example12_5.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 401/CH12/EX12.5/Example12_5.sce (limited to '401/CH12/EX12.5') diff --git a/401/CH12/EX12.5/Example12_5.sce b/401/CH12/EX12.5/Example12_5.sce new file mode 100755 index 000000000..4314d57b8 --- /dev/null +++ b/401/CH12/EX12.5/Example12_5.sce @@ -0,0 +1,20 @@ +//Example 12.5 +//Program to determine the total channel loss ignoring dispersion + +clear; +clc ; +close ; + +//Given data +alpha_fc=5; //dB/km - FIBER CABLE ATTENUATION +alpha_j=2; //dB/km - SPLICE LOSS +alpha_s=3.5; //dB - SOURCE CONNECTOR LOSS +alpha_d=2.5; //dB - DETECTOR CONNECTOR LOSS +L=4; //km - LENGTH OF OPTICAL FIBER LINK + +//Total channel loss +alpha_cr=alpha_s+alpha_d +C_L=(alpha_fc+alpha_j)*L+alpha_cr; + +//Displaying The Result in Command Window +printf("\n\n\tTotal channel loss, C_L = %1.0f dB",C_L) \ No newline at end of file -- cgit