Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 1644 by pavelpo: Coeff() with derivatives and functions http://code.google.com/p/sympy/issues/detail?id=1644
First post, please be gentle. It seems that coeff() doesn't work as it should (?) for expressions with a mix of functions and their derivatives: f = Function('f') x = Symbol('x') g = 2*f(x) + 3*f(x).diff(x) + 4*f(x).diff(x,2) g.coeff(f(x).diff(x)) # works Output: 3 g.coeff(f(x).diff(x,2)) # works Output: 4 g.coeff(f(x)) # doesn't work as expected Output: 9 Shouldn't it be "2" for the last line? -- 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 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 -~----------~----~----~----~------~----~------~--~---