I'm trying to calculate the bit error rate in python with numpy. The code looks like this:
EbbyNo = arange(0,16,1)
ebno = 10**(EbbyNo/10)
BER2 = (3/8)*erfc(cmath.sqrt(ebno*(2/5)))+(1/4)*erfc(3*sqrt(2/5*ebno))
But it's giving me the error:
BER2 = (3/8)*erfc(cmath.sqrt(ebno*(2/5)))+(1/4)*erfc(3*sqrt(2/5*ebno))
TypeError: only length-1 arrays can be converted to Python scalars