summaryrefslogtreecommitdiff
path: root/608/CH41/EX41.03/41_03.sce
blob: ee1ba8d55c373865f5d53ab618e209ddb8e0e564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Problem 41.03: An amplifier has a gain of 15 dB. If the input power is 12 mW, determine the output power.

//initializing the variables:
gain = 1.5; // in dB
Pi = 0.012; // in Watt

//calculation:
//output power
Po = Pi*10^gain

printf("\n\n Result \n\n")
printf("\noutput power is %.4f W",Po)