Re: [BangPypers] Exponential : warning overflow

2016-03-30 Thread Santosh Chiniwar
Thanks for mail. I can get this for Mac OSx. thank you very much *Santosh P. Chiniwar* *--Research Scholar, Thin Film Measurement Lab * *Department of Electronics Engineering* *Chang Gung University, Taiwan (ROC)* *259 Wenhua 1st Rd., Guishan Dist., Taoyuan, * *

Re: [BangPypers] Exponential : warning overflow

2016-03-30 Thread Anand Reddy Pandikunta
You need to install bigfloat module first. See here for instructions . Once it is done, use bigfloat.exp instead of numpy.exp. In [31]: v = numpy.linspace(0, 100, 10) In [32]: from bigfloat import precision, exp In [33]: with precision(10

Re: [BangPypers] Exponential : warning overflow

2016-03-30 Thread Santosh Chiniwar
Thanks for kind reply. I am new to this python coding. Could you please tell me how use bigfloat to fix this overflow problem I am getting overflow for following values v = numpy.linspace(0, 100, 10) j= numpy.exp(v/1.3806488e-23) I have tried to use In [30]: from bigfloat import *

Re: [BangPypers] Exponential : warning overflow

2016-03-29 Thread Gora Mohanty
On 29 March 2016 at 17:14, Santosh Chiniwar 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: prob

[BangPypers] Exponential : warning overflow

2016-03-29 Thread Santosh Chiniwar
Dear BangPypers, Please find my code and I get Overflow warning. I am unable to continue further. Any support or help is appreciated. Thank you Python 3 Code #! /usr/local/bin/python3.4 """ Exponential Test Simulation """ import numpy as np import scipy as sp from scipy.integrate import ode