Sometimes match seems like overkill for something like matching
coefficients between equivalent expressions of an expression, e.g.

the equation of a circle: (x-xc)**2 + (y-yc)**2 - r**2 = 0 and
the general polynomial a*x**2 + b*x + c*y**2 + d*y + e*x*y + f = 0

Are there any thoughts about adding something that would behave like
this:

    >>> from sympy.abc import a,b,c,d,e,f,g,x,y
    >>> eq = x**2+(y-3)**2 - 5
    >>> pat = a*x**2+b*x+c+d*y**2+e*y
    >>> print print match_coefficients(eq, pat, x, y)
    {e: -6, a: 1, b: 0, c: 4, d: 1}

/chris

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to