Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 2852 by [email protected]: is_constant(wrt) is needed
http://code.google.com/p/sympy/issues/detail?id=2852
Although I think I am the one that gave Integral the is_number logic, I
think that is_number should be reserved for things which are trivially
numbers so that evalf will be guaranteed to succeed. It behaves differently
than Sum:
>>> Sum(x,(x,1,10)).is_number
False
>>> Integral(x,(x,1,10)).is_number
True
Would a is_constant function be better where it would take a *wrt arg that
would allow one to specify what variables it should be constant wrt. So
both of the above would be constant (since they contain no free symbols)
but they would not be numbers since they may be difficult (or impossible)
to evaluate easily.
--
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.