summaryrefslogtreecommitdiff
path: root/608/CH10/EX10.14/10_14.sce
blob: 504d5b9c1fddfcf90a84e5a410cb6dadf9f4a023 (plain)
1
2
3
4
5
6
7
8
9
10
//Problem 10.14: 6% of the power supplied to a cable appears at the output terminals. Determine the power loss in decibels.

//initializing the variables:
rP = 0.06; // power ratios rP = P2/P1

//calculation:
X = 10*log10(rP)

printf("\n\n Result \n\n")
printf("\n decibel Power ratios = %.2f dB\n",X)