Updates:
        Labels: NeedsReview smichr

Comment #11 on issue 784 by [email protected]: .match(g1 * log(gamma) + g2 * gamma + g3) doesn't work
http://code.google.com/p/sympy/issues/detail?id=784

https://github.com/sympy/sympy/pull/1673

def test_issue_784():
    mu, gamma, x = symbols('mu gamma x')
    f = (- gamma * (x-mu)**2 - log(gamma) + log(2*pi)) / 2
    g1 = Wild('g1', exclude=[gamma])
    g2 = Wild('g2', exclude=[gamma])
    g3 = Wild('g3', exclude=[gamma])
    assert f.expand().match(g1 * log(gamma) + g2 * gamma + g3) == \
    {g3: log(2)/2 + log(pi)/2, g1: -S(1)/2, g2: -mu**2/2 + mu*x - x**2/2}

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