Comment #8 on issue 4096 by [email protected]: Poly.coeff works only
after .simply().expand()
http://code.google.com/p/sympy/issues/detail?id=4096
Interesting!
So, I just tried (where poly is the original expression -- not a Poly)
sympy.Poly(poly, f0).coeff(f0)
And I still get:
*** NotImplementedError: Either convert to Expr with `as_expr` method to
use Expr's coeff method or else use the `coeff_monomial` method of Polys.
sympy.Poly(poly, f0) shows this:
Poly((3*x**2 - 2*x*x1 - 2*x*x2 - 2*x*x3 + x1*x2 + x1*x3 + x2*x3)/(x0**2 -
x0*x2 - x0*x3 + x2*x3)*f0 + (-3*f1*x**2*x0 - 3*f1*x**2*x1 + 3*f1*x**2*x2 +
3*f1*x**2*x3 + 2*f1*x*x0**2 + 2*f1*x*x0*x1 + 2*f1*x*x1**2 - 2*f1*x*x2**2 -
2*f1*x*x2*x3 - 2*f1*x*x3**2 - f1*x0**2*x2 - f1*x0**2*x3 - f1*x0*x1*x2 -
f1*x0*x1*x3 + f1*x0*x2**2 + f1*x0*x2*x3 + f1*x0*x3**2 - f1*x1**2*x2 -
f1*x1**2*x3 + f1*x1*x2**2 + f1*x1*x2*x3 + f1*x1*x3**2 + 3*f2*x**2*x0 -
3*f2*x**2*x2 - 2*f2*x*x0**2 - 2*f2*x*x0*x1 + 2*f2*x*x1*x2 + 2*f2*x*x2**2 +
f2*x0**2*x1 + f2*x0**2*x2 - f2*x0*x2**2 - f2*x1*x2**2)/(x0**2*x1 - x0**2*x3
- x0*x1*x2 - x0*x1*x3 + x0*x2*x3 + x0*x3**2 + x1*x2*x3 - x2*x3**2), f0,
domain='ZZ(x0,x,x1,x2,x3,f1,f2)')
Ben
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.