summaryrefslogtreecommitdiff
path: root/3665/CH13/EX13.6/Ex13_6.sce
blob: 34c967bb67ffa3bbb0f6809e4f883f032a24397d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc//
//
//

//Variable declaration
Pout=40;    //power(mW)
Pin=100;    //power(mW)

//Calculation
al=-10*log10(Pout/Pin);    //attenuation loss(dB)

//Result
printf("\n attenuation loss is %0.2f dB",al)