Status: Accepted Owner: ---- CC: [email protected] Labels: Type-Defect Priority-Medium
New issue 3104 by [email protected]: Expectation value of random variables raises maximum recursion depth exceeded
http://code.google.com/p/sympy/issues/detail?id=3104 Define the random variables: X = Normal(0,1) Y = Normal(0,1) Z = Normal(0,1) And now the transformed variable: W = sqrt(X**2+Y**2+Z**2) Ask for the expectation: E(X) The answer is: RuntimeError: maximum recursion depth exceeded while calling a Python object Which originated from the poly module, the last function calls are all: densebasic.pyc in dmp_from_dict(f, u, K) 993 n, v, h = max(coeffs.iterkeys()), u-1, [] 994 --> 995 for k in xrange(n, -1, -1): 996 coeff = coeffs.get(k) 997 BTW: W can be expressed as a Maxwell distribution. How can we teach sympy to recognize such things? But this is another story ... -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en.
