Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 4026 by [email protected]: stats errors with floating point
parameters in Normal and density
http://code.google.com/p/sympy/issues/detail?id=4026
When using the sympy.stats.Normal function, specifying a floating point
mean or standard deviation causes a problem in the 'density' function. In
the examples below, example A produces an error, example B does not.
A:
from sympy.stats import *
from sympy import *
a,b=Normal("a",30.,3), Normal('b',0,2)
density(a+b)
output > sympy.polys.polyerrors.CoercionFailed: can't convert
-0.111111111111111 of type <class 'sympy.mpmath.ctx_mp_python.mpf'> from RR
to ZZ
B:
from sympy.stats import *
from sympy import *
a,b=Normal("a",30,3), Normal('b',0,2)
density(a+b)
--
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.
For more options, visit https://groups.google.com/groups/opt_out.