On 09/18/2010 08:31 PM, kcrisman wrote:
> On Sep 18, 12:52 pm, "[email protected]" <[email protected]> wrote:
>> x does not need declaration, it is declared automatically
>
> It's still good practice to do it, just in case x was defined in some
> other way earlier in the session :)
Or with 'sage -c', where x is not currently pre-defined:
$ sage -c "print x"
Traceback (most recent call last):
File "/home/mpatel/apps/sage/local/bin/sage-eval", line 15, in <module>
eval(compile(s,'<cmdline>','exec'))
File "<cmdline>", line 1, in <module>
NameError: name 'x' is not defined
$ sage -c "var('x'); print x"
x
$
This is with version 4.5.3.
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org