Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Integration

New issue 3655 by [email protected]: nan in compute_innermost
http://code.google.com/p/sympy/issues/detail?id=3655

I ran this script


from sympy.stats import *
from sympy import Tuple, Eq, simplify, Symbol, pprint
X = Normal('x', 3, 4)
Y = Normal('y', 5, 6)
Z = Normal('z', 0, 1)

# X, Y, and Z given that Z+Y == X
XX, YY, ZZ = given(Tuple(X, Y, Z), Eq(Z+Y, X))

w = Symbol('w')

pprint(simplify(density(XX**2)(w)))


And received this error

    return bool(self.p*other.q < self.q*other.p)
AttributeError: 'NaN' object has no attribute 'q'


I was able to correct the result with this hack

https://github.com/mrocklin/sympy/commit/b49e839c4ea9ceaa89952742966780bb1a730702

But presumably there is some deeper issue

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to