[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

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-24 Thread Sebastian Koslowski
kages/sympy/core/relational.py in __nonzero__(self) 101 102 def __nonzero__(self): --> 103 raise TypeError("cannot determine truth value of\n%s" % self) 104 105 __bool__ = __nonzero__ TypeError: cannot determine truth value of -oo < -inf On Tue, M

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-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