This seems to work for me....

sage: R.<x, y> = QQ['x', 'y']
sage: etuple = (x + y).exponents()[1]; etuple
(0, 1)
sage: etuple[-1]
1
sage:


On May 17, 8:05 pm, Nick Alexander <[EMAIL PROTECTED]> wrote:
> Interpreting slices should be passed off to the python builtin list
> slice if at all possible, it's just too hard to implement consistently
> by hand.  See the patch I just posted for matrices for an example.
>
> sage: R.<x, y> = QQ['x', 'y']
>
> sage: etuple = (x + y).exponents()[1]; etuple
>  (0, 1)
>
> sage: etuple[-1]
>  0
>
> Nick


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to