On Tue, Nov 25, 2008 at 5:51 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 25, 2008 at 4:38 PM, Zoho Vignochi <[EMAIL PROTECTED]> wrote:
>>
>> 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?
>
> No, you've found a bug, I made it:
>
> http://code.google.com/p/sympy/issues/detail?id=1219
>
> I am looking how to fix it now.
The root of the problem is reported in the issue.
Ondrej
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---