| 1 | initial version |
You should use q = SR.var('q') instead of q = var('q'). Indeed, var('q') injects q in the global namespace, while SR.var('q') does not.:
def dummy():
q = SR.var('q')
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.