Updates:
        Status: Accepted
        Labels: -Priority-Medium Priority-High

Comment #1 on issue 1319 by ondrej.certik: constants left out in matching  
d/dx(g(x)*dy/dx)
http://code.google.com/p/sympy/issues/detail?id=1319

Thanks for the bug report, try the newest git sympy, here is what I got:

In [1]: a, b, c = Wild("a"), Wild("b"), Wild("c")

In [2]: eq = diff(g(x)*f(x).diff(x),x)

In [3]: eq.match(g(x).diff(x)*f(x).diff(x)+g(x)*f(x).diff(x,x)+c)
Out[3]: {c: 0}

In [4]: eq.match(a*g(x).diff(x)*f(x).diff(x)+b*g(x)*f(x).diff(x,x)+c)
Out[4]:
⎧               d        d          d        d       ⎫
⎨a: 1, b: 1, c: ──(g(x))⋅──(f(x)) - ──(f(x))⋅──(g(x))⎬
⎩               dx       dx         dx       dx      ⎭


It's almost right, even though it's funny it can't simplify the thing  
for "c". Thanks
for the bug report. If you have time to debug it, it'd be awesome.

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