summaryrefslogtreecommitdiff
path: root/3543/CH2/EX2.5/Ex2_5.sce
blob: 9fd407c35410494a35d49b338346998bddae75e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Example 2.5
// Calculation of maximum transmission distance
// Page no 47
clc;
clear;
close;

// Given data
Pi=1*10^-3;                   // Input power
A=0.5;                        // Atteuation
Po=50*10^-6;                  // Output Power

// Maximum transmission distance
L=(10/A)*log10(Pi/Po);         

//Display result on command window
printf("\n Maximum transmission distance (in km) = %0.0f  ",L);