On Fri, 18 Sep 2009 09:34:35 -0700 (PDT) kcrisman <kcris...@gmail.com> wrote:
> I don't know if there is a way to get at where coefficients of > elements in SR come from; they all just become symbolic expressions. > Even with the .coeffs() method, they still end up coming out as > symbolic expressions. Burcin or others will clarify, but probably the > idea was that symbolic means just that - symbolic, with no reference > to other things. Symbolic expressions keep python objects for numeric values or coefficients. You can get at the python object wrapped by an expression using the .pyobject() method and ask for its parent. sage: t = Mod(3,5) sage: t.parent() Ring of integers modulo 5 sage: u = SR(t) sage: u 3 sage: u.parent() Symbolic Ring sage: u.pyobject().parent() Ring of integers modulo 5 Cheers, Burcin --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---