Wow, I had never heard of inject_on() until now.  Amazing!  It looks
as if it has been in Sage for a long time, since its docstring says
"Add code ... and send William Stein a patch"!

John

On Sep 26, 2:16 am, Robert Bradshaw <rober...@math.washington.edu>
wrote:
> On Sat, Sep 25, 2010 at 10:51 AM, kcrisman <kcris...@gmail.com> wrote:
>
> >> This is the only possibility, because the "var('x')" command executed
> >> by default at startup did the assignment
>
> >> x = SR('x')
>
> >> and you haven't bound x to any other object. Once you execute
>
> >> x = b.0
>
> >> [ or one of its implicit forms like b.<x>=PolynomialRing(ZZ,'x')] then
> >> x is no longer referencing the "symbolic expression x", but the
> >> "univariate polynomial x" instead.
>
> > Okay, I knew that this would work, but it seems odd that
> > PolynomialRing(ZZ, 'x') doesn't actually change x, though it's
> > consistent.  So it just represents things with x until I ask for the
> > Python variable x to be that x, not the var x.
>
> I you want that, do
>
>     sage: inject_on()
>
> > Nice to see the positive review 
> > forhttp://trac.sagemath.org/sage_trac/ticket/7741
> > :)  Thanks
>
> Thanks from me too, that's been waiting a long time.
>
> - Robert

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to