ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 20 Jun 2011 16:46:38 +0200How can I clear an assignment to a variable?https://ask.sagemath.org/question/8172/how-can-i-clear-an-assignment-to-a-variable/If I assign a symbolic expression to a variable, how do I clear the assignment as if I didn't assign anything to it in the first place?
For example,
sage: var('a,b')
(a, b)
sage: x=a+b
sage: x
a + b
sage: var(x)
a + b
sage: x
a + b
sage: x=x
sage: x
a + b
Here, I assigned a+b to x. But I can't 'unassign' it.
In Mathematica this can be done with Clear[x].
Thanks.omoplataMon, 20 Jun 2011 16:46:38 +0200https://ask.sagemath.org/question/8172/