| 1 | initial version |
This is not a bug, SR.var('a') returns the symbol "a" without touching the namespace, while var('a') both returns the symbol "a" and lets the Python name a points to that symbol. You can do:
sage: a = SR.var('a')
sage: a
a
or to see the difference between the symbol and the Python name that points to it:
sage: b = SR.var('a')
sage: b
a
sage: b+b
2*a
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.