summaryrefslogtreecommitdiff
path: root/226/CH8/EX8.2/example2_sce.sce
blob: 1625a28d33233b3a2cb93d4c833741543806659a (plain)
1
2
3
4
5
6
7
8
9
//chapter 8
//example 8.2
//page 313
printf("\n")
printf("given")
P2=25*10^-3;//when frequency increase to 20KHz
P1=50*10^-3;//when signal frequency is 5KHz
Po=10*log10(P2/P1);
printf(" output power change in decibels is %ddB\n",Po)