blob: ca7daa7874072b25d5d6e351653f6ebaec430d43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Example 7.3
// Calculation of the distance.
// Page no 315
clc;
clear;
close;
//Given data
B1=2.5*10^9; // Mean optical power
B2=10*10^9; // Split loss
L1=160*10^3; // Total system margin
// Distance
L2=((B1/B2)^2*L1);
L2=L2*10^-3;
//Displaying results in the command window
printf("\n Distance = %0.0f Km ",L2);
// The answers vary due to round off error
|