blob: b7952974e23d96e02353abf6a5a10d36213261bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//chapter 2
printf("\n");
Rrad=72;
Rloss=8;
Gp=16;
n=Rrad/(Rrad+Rloss);
printf("the radiation efficiency is %g",n);
Gp=16;
Gd=Gp/n;
Gddb=10*log10(Gd);
printf("\nthe directive gain is %g",Gd);
printf("\nthe directive gain in db is %gdb",Gddb);
|