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
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/
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
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
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