On Monday, August 18, 2014 9:25:56 AM UTC-7, Nils Bruin wrote:
>
>
> You could use q.dict() instead which has the appropriate order, but 
> encodes the monomials as exponent vectors, which are hard to convert to At. 
> [you should go that route, though, because the other method can give you 
> wrong answers]
>

Workaround (relying on ".monomials()" and ".coefficients()" returning their 
results in compatible order):

 sum([b.polynomial()*At(a) for a,b in 
zip(q.monomials(),q.coefficients())]).list()

You should file tickets for the bugs in dict(q) and the uselessness of 
q.dict().

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to