summaryrefslogtreecommitdiff
path: root/273/CH24/EX24.7/ex24_7.sce
blob: 6d053a39b8f6093c27435f62b6ceb40208497b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc;clear;
//Example 24.7
//calculation of power loss

//given values
Pi=1*10^-3;//initial power level in W
l=.5;//length of cable in km
Po=.85*Pi

//calculation
a=(10/l)*log10(Pi/Po);
disp(a,'loss in dB/km is');