>
>
> In [73]: x.as_independent(x)
> Out[73]: (1, x)
>
> If you want the constant term, 0, then this is the wrong method.
>
>
The as_Add flag was added to allow for this:

>>> x.as_independent(x, as_Add=False)
(0, x)


IMO, the "deps" flag should be added into as_coeff_Add and as_coeff_Mul and
as_independent should be deprecated.

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