Re: [sympy] TypeError using sympy.stats.P

2015-03-25 Thread Sebastian Koslowski
This fixes it for me: https://github.com/sympy/sympy/pull/9199 -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this grou

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Francesco Bonazzi
Better reproduction of this bug: In [1]: from sympy import * In [2]: inf = Float('inf') In [3]: oo < inf Out[3]: False In [4]: -oo < -inf Out[4]: -oo < -inf In [5]: bool(-oo < -inf) --- TypeError

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Francesco Bonazzi
On Tuesday, March 24, 2015 at 1:10:25 PM UTC+1, Sebastian Koslowski wrote: > > Sure: > > [koslowski@host ~]$ PYTHONHASHSEED=123 ipython3 > I've been able to reproduce this bug. Apparently it's related to Python 3.3 version. I don't get it on versions 2.7 and 3.4 of Python. -- You received thi

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Sebastian Koslowski
On Tue, Mar 24, 2015 at 1:13 PM, Francesco Bonazzi wrote: > > Try this: > > res = P(N0 <= 1.1001, evaluate=Fales) > res.doit() > > and see whether the exception is raised by the first or the second step. > It is raised by the first step. -- You received this message because you are subscribed

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Francesco Bonazzi
On Tuesday, March 24, 2015 at 12:33:01 PM UTC+1, Joachim Durchholz wrote: > > Am 24.03.2015 um 11:18 schrieb Sebastian Koslowski: > > > > Judging from the error message and traceback I looks like a bug to me. > > Can you post an example? > I.e. full session, from PYTHONHASHSEED setting to trac

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Sebastian Koslowski
Sure: [koslowski@host ~]$ PYTHONHASHSEED=123 ipython3 Python 3.3.2 (default, Dec 4 2014, 12:49:00) Type "copyright", "credits" or "license" for more information. IPython 2.3.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick refe

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Joachim Durchholz
Am 24.03.2015 um 11:18 schrieb Sebastian Koslowski: Judging from the error message and traceback I looks like a bug to me. Can you post an example? I.e. full session, from PYTHONHASHSEED setting to traceback? Then we have a chance to repeat the issue. -- You received this message because you

Re: [sympy] TypeError using sympy.stats.P

2015-03-24 Thread Sebastian Koslowski
On Thursday, March 19, 2015 at 6:02:46 PM UTC+1, Joachim Durchholz wrote: > > > One cause of random behaviour is built right into Python. > Set the environment variable PYTHONHASHSEED to an integer when starting > SymPy, and this source of randomness is eliminated and you'll get > repeatable b

Re: [sympy] TypeError using sympy.stats.P

2015-03-19 Thread Joachim Durchholz
Am 19.03.2015 um 11:38 schrieb Sebastian Koslowski: Hey, I am trying to use the stats module to calculate probabilities for a normal distributed RV. Problem is, I sometimes get "TypeError: cannot determine truth value of -oo < -inf". Weird thing is, the error is not always reproducible between (

[sympy] TypeError using sympy.stats.P

2015-03-19 Thread Sebastian Koslowski
Hey, I am trying to use the stats module to calculate probabilities for a normal distributed RV. Problem is, I sometimes get "TypeError: cannot determine truth value of -oo < -inf". Weird thing is, the error is not always reproducible between (ipython) sessions (see below) Can somebody explai