Well at least now I feel productive in helping to improve sympy. How
long does it normally take to get this sort of thing fixed? I need to
decide whether to use maxima or sympy in the next few days. I
understand this may not be an easy to answer question though.

Thanks,
John.

On Apr 14, 1:42 pm, "Ondrej Certik" <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 14, 2008 at 2:25 PM, [EMAIL PROTECTED]
>
>
>
> <[EMAIL PROTECTED]> wrote:
>
> >  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?
>
> No, I think you just found a bug. It's now:
>
> http://code.google.com/p/sympy/issues/detail?id=784
>
> Ondrej
--~--~---------~--~----~------------~-------~--~----~
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