blob: 7c34120b94c93be1ea30fff21ba1c50fe03bb38c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//chapter 2
//P=k(Ta+Tr)B
printf("\n");
Ta=15;
Tr=20;
b=4*10^6;
//part a
k=1.38*10^-23;
Pb=k*(Ta+Tr);
printf("the power per unit bandwidth is %gW/hz",Pb);
//part b
P=Pb*b;
printf("\nthe available noise power is %gW",P);
|