[sage-support] Re: Difference between var('x') and x=var('x')?

2011-06-19 Thread Jacare Omoplata
Thanks for the replies. -- 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

Re: [sage-support] Re: Difference between var('x') and x=var('x')?

2011-06-17 Thread Volker Braun
I just fixed it in the patch on #7496: sage: var('2x') --- ValueErrorTraceback (most recent call last) /home/vbraun/opt/sage-4.7.1.alpha2/devel/sage-main/ in () /home/vbraun/Sage/sage/local/

Re: [sage-support] Re: Difference between var('x') and x=var('x')?

2011-06-17 Thread Burcin Erocal
On Fri, 17 Jun 2011 08:10:26 -0700 (PDT) Harald Schilly wrote: > you can also create invalid variable names, i.e. the ones starting > with a number: > > sage: var('2x') > 2x > > sage: 2x > >File "", line 1 > 2x > ^ > Sy

[sage-support] Re: Difference between var('x') and x=var('x')?

2011-06-17 Thread kcrisman
Harald explained this :) > Also, is it better to ask this kind of basic question in the Asksage > forum or the sage-support mailing list? Either one is fine. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubsc

[sage-support] Re: Difference between var('x') and x=var('x')?

2011-06-17 Thread Harald Schilly
the difference is, that var(..) itself already injects a variable with that name into the global namespace, where the other one is an assignment. i.e. z = var('y') gives you a variable y (named "y") and a variable z with the name "y" sage: z = var('y') sage: z y sage: y y you can also create i