Comment #29 on issue 1116 by [email protected]: integrate outputs wrong result when the function is singular
http://code.google.com/p/sympy/issues/detail?id=1116

Partly what makes it any sort of deal is that we don't have a predifined function to establish the domain of a function. This could be done by building the set of all solutions to the denominators of expression as a start, and denoms() in solvers.py could be used to give the set of denominators that appear:

    >>> from sympy.solvers.solvers import denoms
    >>> denoms((1 + 1/x)/(x - 1))
    set([x - 1, x])
    >>> d=_
    >>> exclude=set()
    >>> for di in d:
    ...  exclude.update(solve(di))
    ...
    >>> exclude
    set([1, 0])

So 1 and 0 are excluded from the domain of the function.

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

Reply via email to