All problems
Wideband Capacity Limit
Problem
Return the limiting capacity in bits per second as bandwidth grows without bound for signal power P and one-sided noise spectral density N0:
C = log2(e) * P / N0
Assume N0 > 0.
Hint
Spreading power over more bandwidth eventually saturates at P / (N0 ln 2).
Test cases
case 1
in: [1,1]
expected: 1.4426950408889634
case 2
in: [2,1]
expected: 2.8853900817779268
case 3
in: [1,2]
expected: 0.7213475204444817
case 4
in: [5,0.5]
expected: 14.426950408889635
Starter codePython
import math
def wideband_capacity_limit(power, noise_psd):
# Your code here
pass4 test cases · run your code against them in the editor