Re: [sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-29 Thread Joachim Durchholz
Am 28.10.2011 21:51, schrieb Aaron Meurer: What exactly concerns you by the way? Things like int(0.1) or even ceil(0.1) are going to be very fast. That exactly was what was concerning me. If it's not an issue within the Python framework, I'm happy. > Though I think the fact that it uses a cac

Re: [sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-28 Thread Aaron Meurer
On Thu, Oct 27, 2011 at 3:30 PM, Joachim Durchholz wrote: > Am 27.10.2011 18:38, schrieb Aaron Meurer: >> >> So actually, using float() is probably cleaner than using int() as I >> had previously suggested, because to really do it correctly, you would >> actually have to use floor() and ceil().  S

Re: [sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-27 Thread Joachim Durchholz
Am 27.10.2011 18:38, schrieb Aaron Meurer: So actually, using float() is probably cleaner than using int() as I had previously suggested, because to really do it correctly, you would actually have to use floor() and ceil(). So go ahead and just use that. There really isn't much concern with it

Re: [sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-27 Thread Aaron Meurer
On Tue, Oct 25, 2011 at 12:50 PM, Joachim Durchholz wrote: > Am 25.10.2011 18:33, schrieb Aaron Meurer: >>> >>>  The issue report suggests testing for non-"intness" via >> >>  int(N) != N >> What's the best way to test for "floatness" in Python? >> > > This is not what the

Re: [sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-25 Thread Joachim Durchholz
Am 25.10.2011 18:33, schrieb Aaron Meurer: The issue report suggests testing for non-"intness" via int(N) != N What's the best way to test for "floatness" in Python? This is not what the issue suggests. Why is this important? More specifically, I do not fully understand why extending

Re: [sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-25 Thread Aaron Meurer
On Monday, October 24, 2011, Joachim Durchholz wrote: > Am 24.10.2011 08:37, schrieb Aaron Meurer: > >> On Sun, Oct 23, 2011 at 11:33 PM, Aaron Meurer >> wrote: >> >>> On Sat, Oct 22, 2011 at 3:57 AM, Joachim Durchholz >>> wrote: >>> I'm seeing parameters that select primes by index, and pa

Re: [sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-24 Thread Joachim Durchholz
Am 24.10.2011 08:37, schrieb Aaron Meurer: On Sun, Oct 23, 2011 at 11:33 PM, Aaron Meurer wrote: On Sat, Oct 22, 2011 at 3:57 AM, Joachim Durchholz wrote: I'm seeing parameters that select primes by index, and parameters that select primes by magnitude. I'm assuming they should all be protect

Re: [sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-23 Thread Aaron Meurer
On Sun, Oct 23, 2011 at 11:33 PM, Aaron Meurer wrote: > On Sat, Oct 22, 2011 at 3:57 AM, Joachim Durchholz wrote: >> Hi, >> >> I have started working on the issue in the subject line. >> ( See http://code.google.com/p/sympy/issues/detail?id=1740 ) >> >> Things I noticed, questions: >> >> I'm seei

Re: [sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-23 Thread Aaron Meurer
On Sat, Oct 22, 2011 at 3:57 AM, Joachim Durchholz wrote: > Hi, > > I have started working on the issue in the subject line. > ( See http://code.google.com/p/sympy/issues/detail?id=1740 ) > > Things I noticed, questions: > > I'm seeing parameters that select primes by index, and parameters that >

[sympy] Issue 1740: prime(symbol('x')) never returns

2011-10-22 Thread Joachim Durchholz
Hi, I have started working on the issue in the subject line. ( See http://code.google.com/p/sympy/issues/detail?id=1740 ) Things I noticed, questions: I'm seeing parameters that select primes by index, and parameters that select primes by magnitude. I'm assuming they should all be protected,