Hi there,
Although I love the notebook() option, I would like to start using Sage
more from the command line. Using Sage to import *.sage scripts is
relatively easy, but I found problems when I try to define a function in
the command line. For example, if I do:
$ ./sage -ipython -nobanner
>>> from sage.all import *
>>> f(x) = x**2
I found the following error:
File "<ipython console>", line 1
SyntaxError: can't assign to function call (<ipython console>, line 1
However, if I write a sage script and define the function on it, i can
easily use it:
>>> load("simple.sage")
>>> f(3)
>>> 9
By the way, I did not find much documentation regarding the use of the
Sage in command-line mode, or about how to call Sage as a Python
library. If this is not already present, I will try to add this (after
reading the developers guide) to the standard Sage documentation.
Thanks a lot for your help.
Jose
--
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