[BangPypers] Exponential : warning overflow
Gora Mohanty
gora at mimirtech.com
Tue Mar 29 09:34:42 EDT 2016
On 29 March 2016 at 17:14, Santosh Chiniwar <santosh.chini at gmail.com> wrote:
> Dear BangPypers,
> Please find my code and I get Overflow warning. I am unable to continue
> further. Any support or help is appreciated.
Somewhere you are getting too large a number for the range of type in
the array that you are using: probably because you are dividing by the
very small Boltzmann constant.
You either need to use a type with a bigger range, say bigfloat for
arbitrary precision floating-point arithmetic, or if the errors only
occur for values that can be ignored, see
http://docs.scipy.org/doc/numpy/reference/generated/numpy.seterr.html
for how to ignore errors.
Incidentally, all this information is available from an easy Google search.
Regards,
Gora
More information about the BangPypers
mailing list