On 5/29/07, Kiran S. Kedlaya <[EMAIL PROTECTED]> wrote:
> I see that in recent versions of SAGE, referring to an object not
> previously created generates a Maxima symbolic object.

That's not what's actually happening.  What's happening is that the file
             sage/calculus/predefined.py
predefines just the single letters of the alphabet (except e and i)
to be symbolic variables.

> Is there a global
> toggle to turn on/off this behavior? I can see the value of this in an
> interactive setting, but when programming I would sometimes rather get
> an error when trying to refer to a previously undefined object.

There is currently no function to clear these,
so I just wrote one.   The attached patch adds a function clear_vars()
that when called removes all 1-letter symbolic variables that are
currently defined.


William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Attachment: 4705.patch
Description: Binary data

Reply via email to