On 29 March 2016 at 17:14, Santosh Chiniwar <santosh.ch...@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 _______________________________________________ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers