Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Medium NeedsReview

New issue 1835 by smichr: 1835: coeff changes
http://code.google.com/p/sympy/issues/detail?id=1835

    1835: coeff changes

    coeff now uses extract multiplicatively to find terms containing
    the quantity of interest. There is no longer an expand option needed;
    if you want the result expanded, use expand(eq.coeff(term)). It can
    also handle Add terms, e.g.

    >>> (2*x*(1+x)).coeff(1+x)
    2*x

    There is an exact option (on by default) which only returns what
    a 'term' can be extracted from once. If this option is off, then
    partial matches result:

    >>> (x+x**2).coeff(x)
    1
    >>> (x+x**2).coeff(x, exact=0)
    1 + x

    Because it depends on extract_multiplicatively, it also works with
    noncommutatives.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to