Updates:
        Status: Fixed

Comment #77 on issue 966 by smi...@gmail.com: extract minus sign issues (from comment 46ff) was "Can't simplify exp(2 * pi * I * a) when a is integer"
http://code.google.com/p/sympy/issues/detail?id=966

Perhaps this can be closed:

    >>> a = Symbol("a", integer = True)
    >>> exp(2*pi*I*a)
    1
    >>> (1-x-y).could_extract_minus_sign()
    True

<the semantics of could_extract_minus_sign give True in this case because there are an odd number of terms that a minus can be extracted from>

    >>> from sympy.solvers.ode import _undetermined_coefficients_match
    >>> _undetermined_coefficients_match(4*x*sin(x - 2), x)
{'test': True, 'trialset': set([x*cos(x - 2), x*sin(x - 2), cos(x - 2), sin(x -
    2)])}
>>> {'test': True, 'trialset': set([x*cos(x - 2), x*sin(x - 2), cos(x - 2),
    ... sin(x-2)])}
{'test': True, 'trialset': set([x*cos(x - 2), x*sin(x - 2), cos(x - 2), sin(x -
    2)])}



--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@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