blob: a36c6c78db03e5c0a8f32e75b340bfe1c5af7d7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//variable declaration
P_i=100
P_o=2
L=10
//Calculations
S=(10/L)*log(P_i/P_o)
O=S*L
//Result
printf('a.Signal attention per unit length =%0.3f dB km**-1\n',(S))
printf('b.Overall signal attenuation =%0.3f dB\n',(O))
printf('//Answer given in the textbook is wrong')
|