summaryrefslogtreecommitdiff
path: root/1883/CH3/EX3.6.4/Example3_15.sce
blob: a15acabf36115972e969a65c04f510f6f9704116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Chapter-3,Example3_6_4,pg 3-19

Pin=8.6                                                      //Input power in mW

Pout=7.5                                                     //output power in mW

Pl=(-10)*log10(Pout/Pin)                                     //Power loss or attenuation

L=0.5                                                        //Length of cable in km

a=Pl/L                                                       //Loss secification

printf("\nThe loss specification in cable is  a = %.3f dB/km\n",a)