summaryrefslogtreecommitdiff
path: root/3543/CH2/EX2.4/Ex2_4.sce
blob: 19507384819ad34f537ed2cffd93053f32edd56f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Example 2.4
// Calculation of output power
// Page no 46

clc;
clear;
close;

// Given data
Pi=1;                                       // Input power
A=0.5;                                     // Atteuation
L=15;                                     // Fiber link length

// Output Power
Po=Pi*10^((-A*L)/10);                     

//Display result on command window
printf("\n Output Power (in mW) = %0.3f  ",Po);