I'm trying to calculate Ricean Fading PDF using following equation. RIcean Fading PDF. where 'y' is normalized envelope and 'gamma' is SNR
if the K value is large, then
math.exp(-((1.+_gamma)*pow(_y,2.) + _gamma))
exp results in big floating point (e.q. 1.01e-5088). in python it will shows '0.0' as value
mpmath.besseli(0,2. * _y * np.sqrt(_gamma * (1. + _gamma)))
the value of Bessel Function shows big int value (e.q. 7.78e+5092). in python it will shows '**inf**' value
How can i store big integer and floating point value in python and calculate the pdf?
def rice_pdf(self, _y, _gamma): return 2. * _y * (1. + _gamma) * math.exp(-((1.+_gamma)*pow(_y,2.) + _gamma)) * special.i0(2. * _y * np.sqrt(_gamma * (1. + _gamma)))
Thanks.