Thanks. That works well for x. How to do the same for gamma and
log(gamma)? In ipython I get the following:

In [1]: from sympy import *

In [2]: from sympy.abc import mu, gamma, x

In [3]: f = (- gamma * (x-mu)**2 - log(gamma) + log(2*pi)) / 2

In [4]: g1 = Wild('g1', exclude=[gamma])

In [5]: g2 = Wild('g2', exclude=[gamma])

In [6]: g3 = Wild('g3', exclude=[gamma])

In [7]: print f.expand().match(g1 * log(gamma) + g2 * gamma + g3)
None


So it looks like this method only works for polynomials but not when I
want to factor in terms of more complicated functions like log(gamma).
Am I missing something?

Thanks for the help so far,
John.

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

Reply via email to