From a3234636a3393786fc8510f7bbca7449bbf63aeb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 25 Feb 2008 21:12:14 -0500 Subject: brief sage usage --- sagemath | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sagemath (limited to 'sagemath') diff --git a/sagemath b/sagemath new file mode 100644 index 0000000..f01883f --- /dev/null +++ b/sagemath @@ -0,0 +1,23 @@ +================== +SAGE Math Package +================== + +.. warning:: Under progress! + +This is a reference for the `sage `_ math package. + +Web Notebooks +----------------------------- +To start run ``notebook()`` from an interactive shell; passing a directory as an argument will store files there. Also try``sage_wiki()``! + +To get help on a ``cmd`` type ``cmd?`` in an cell and press the Escape key. + +Interactive Shell +----------------------------- +Instead of the usual python ``**`` you can use ``^`` like the rest of the world, at least from the notebook and shell; use the old operator in scripts? + +Prefacing with ``time`` gives processor time statistics; you can wrap a series of commands with ``t = cputime()`` and ``cputime(t)`` to get the sum of time statistics; ``walltime`` works similarly. + +The general trick for saving text representations of objects is to open a file dscriptor and write the ``str`` of the object to it. + +``save_session`` and ``load_session`` save all objects in the session to a ``.sobj`` file. -- cgit v1.2.3