Re: [sympy] OverflowError when calling sympy.intervals()

2013-09-23 Thread Mateusz Paprocki
Hi, On 23 September 2013 20:12, Heiner Kirchhoffer wrote: > Hi Aaron and all, > > Maybe, P can be negative? This would require a float or maybe better, a > Rational. > > After studying the related code from a pure syntactical point of view > (without knowing the mathematical concept behind), I wo

Re: [sympy] OverflowError when calling sympy.intervals()

2013-09-23 Thread Heiner Kirchhoffer
Hi Aaron and all, Maybe, P can be negative? This would require a float or maybe better, a Rational. After studying the related code from a pure syntactical point of view (without knowing the mathematical concept behind), I would like to discuss two changes which could maybe solve the problem.

Re: [sympy] OverflowError when calling sympy.intervals()

2013-09-20 Thread Aaron Meurer
I guess we just need to look at why it uses floating point 2.0 instead of 2, which would work just fine. By the way, it's better to build up expressions using Symbols instead of using strings. At the very least, don't assume that arbitrary SymPy functions will convert strings to expressions. See h

Re: [sympy] OverflowError when calling sympy.intervals()

2013-09-20 Thread Ondřej Čertík
Hi Heiner, On Fri, Sep 20, 2013 at 9:39 AM, Heiner Kirchhoffer wrote: > Hello, > > some months ago I started using sympy for finding roots of polynomials. > It works really well and it enables me to solve more and more complicated > problems. I am glad SymPy is useful to you. > > Recently, I ob

[sympy] OverflowError when calling sympy.intervals()

2013-09-20 Thread Heiner Kirchhoffer
Hello, some months ago I started using sympy for finding roots of polynomials. It works really well and it enables me to solve more and more complicated problems. Recently, I observed a case where the function sympy.intervals(...) throws an "OverflowError" exception. It happens when executing t