Re: [sympy] OverflowError when converting PythonRational to int

2013-10-04 Thread Heiner Kirchhoffer
OK, I posted pull request #2499. https://github.com/sympy/sympy/pull/2499 Heiner Am Mittwoch, 2. Oktober 2013 17:14:16 UTC+2 schrieb Ondřej Čertík: On Wed, Oct 2, 2013 at 7:42 AM, Heiner Kirchhoffer heiner.ki...@gmail.com javascript: wrote: I just realised that the this issue is related

Re: [sympy] OverflowError when converting PythonRational to int

2013-10-02 Thread Heiner Kirchhoffer
, Oct 1, 2013 at 9:20 AM, Heiner Kirchhoffer heiner.ki...@gmail.com javascript: wrote: Hello, When using the branch fix-root-isolation-bounds of repository https://github.com/mattpap/sympy.git;, the following code produces an OverflowError: a = x**45 - 45*x**44 + 990*x**43

[sympy] OverflowError when converting PythonRational to int

2013-10-01 Thread Heiner Kirchhoffer
Hello, When using the branch fix-root-isolation-bounds of repository https://github.com/mattpap/sympy.git;, the following code produces an OverflowError: a = x**45 - 45*x**44 + 990*x**43 - 14190*x**42 + 148995*x**41 - 1221759*x** 40 + 8145060*x**39 - 45379620*x**38 + 215553195*x**37 -

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

2013-09-23 Thread Heiner Kirchhoffer
ondrej...@gmail.comjavascript: wrote: Hi Heiner, On Fri, Sep 20, 2013 at 9:39 AM, Heiner Kirchhoffer heiner.ki...@gmail.com javascript: wrote: Hello, some months ago I started using sympy for finding roots of polynomials. It works really well and it enables me to solve

Re: [sympy] Possible bug in method 'refine_root()' of class sympy.polys.polytools.Poly

2013-06-19 Thread Heiner Kirchhoffer
Hi Mateusz and all, refine_root() doesn't work with non-squarefree polynomials. Unfortunately it's not written in the documentation. Remove root multiplicities with sqf() and then proceed with your original approach, e.g.: In [8]: sqf_list(f) Out[8]: ⎛ ⎡⎛ 2 ⎞⎤⎞ ⎝1, ⎣⎝x -

Re: [sympy] Possible bug in method 'refine_root()' of class sympy.polys.polytools.Poly

2013-06-18 Thread Heiner Kirchhoffer
Hi smichr and all, Thank you for your quick response. Does that mean that the method 'refine_root()' of class 'Poly' is not capable of finding isolation intervals for all real roots of an arbitrary polynomial? If so, this would, unfortunately, render the method 'refine_root()' useless for my

[sympy] Possible bug in method 'refine_root()' of class sympy.polys.polytools.Poly

2013-06-17 Thread Heiner Kirchhoffer
Hello, method 'refine_root()' of class 'Poly' seems to unexpectedly raise an exception. The following code produces the exception: x = Symbol( x ) p = Poly( x**4 - 6*x**3 + 11*x**2 - 6*x + 1 ) p.refine_root( 0, 1 ) # raises: sympy.polys.polyerrors.RefinementFailed: there should be exactly one