summaryrefslogtreecommitdiff
path: root/605/CH2/EX2.13/2_13.sce
blob: 14bae08179774c3d670c62a861a502a546794e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//noise factor
F=10^(10/10)
//equation and result
printf("\nresult:-")
printf("\n(a)B=1MHz")
B=1
Pimds=-111+F+10*log10(B)     //F in dB, B in MHz, Pidms in dBm
printf("\n\tPimds=-111+F+10*log10(B)\n\tPimds=%.1f dBm",Pimds)
printf(" = %.2e mW",10^(Pimds/10))
printf("\n(b)B=1GHz")
B=1000
Pimds=-111+F+10*log10(B)     //F in dB, B in MHz, Pidms in dBm
printf("\n\tPimds=-111+F+10*log10(B)\n\tPimds=%.1f dBm",Pimds)
printf(" = %.2e mW",10^(Pimds/10))

printf("\n(c)B=10GHz")
B=10000
Pimds=-111+F+10*log10(B)     //F in dB, B in MHz, Pidms in dBm
printf("\n\tPimds=-111+F+10*log10(B)\n\tPimds=%.1f dBm",Pimds)
printf(" = %.2e mW",10^(Pimds/10))
printf("\n(d)B=1kHz")
B=0.001
Pimds=-111+F+10*log10(B)     //F in dB, B in MHz, Pidms in dBm
printf("\n\tPimds=-111+F+10*log10(B)\n\tPimds=%.1f dBm",Pimds)
printf(" = %.2e mW",10^(Pimds/10))