Hello:

I am using sympy on debian unstable. The function coeff is not returning
what I expect. Below is an example


Python 2.5.2 console for SymPy 0.6.3

These commands were executed:
>>> from __future__ import division
>>> from sympy import *
>>> x, y, z = symbols('xyz')
>>> k, m, n = symbols('kmn', integer=True)
>>> f, g, h = map(Function, 'fgh')

Documentation can be found at http://sympy.org/

In [1]: p = -x/8 + x*y

In [2]: p.coeff(x)
Out[2]: 0              ****Here I expected -1/8 + y

In [3]: p.coeff(-x)
Out[3]: -y

In [4]: p.coeff(y)
Out[4]: x

In [5]:

Am I doing something silly?

Zoho

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