The Azimuth Project
Sage (changes)

Showing changes from revision #32 to #33: Added | Removed | Changed



Sage is a free open source symbolic and numerical mathematics software which is programmed in Python. Like Python which comes with batteries included, Sage comes with “matheries” included and is bundled with a host of math and visualization packages - jmol - java 3d molecule viewer, R and much more which can be invoked by importing.

The goal for Sage is to be a viable alternative to Mathematica , Maple and Matlab and it also has support for interaction and animation.


As you can see below you can mix latex and computation in many ways.


The co-creators also point to the need to enable transparency in mathematical research, that you can inspect the PDE solver or factorization into primes. This is completely opaque in Mathematica. There is also support for getting web data see example 2 and 3 which fetches data from NOAA and does an regression analysis on the time interval you choose. The second example fetches arctic ice data and plot for the month you choose. Sage also has a lot of very fast time series support and

The Azimuth project has some pages where Sage/Python/R code has been tested experimentally:

There are also some tutorials on subject matters relevant for Azimuth:

Starting out with Sage

The easiest way is to create an account/pwd on the Sage Notebook cloud server and read the Quickstart and Sage tutorial in the references. Any worksheet you experiment with is private and not visible until you decide to publish it by pressing “publish” that particular notebook. Now there is a set of mirror servers so running Sage over the net is effortless now and will of course get just better with each new mirror.

If you know R and wants to see how that works there is a recent tutorial which was presented on the lates UseR conference 2010.

Setting up SAGE server

This can be done on your own machine or by setting up a Sage server for several client notebooks . For the Azimuth project it is probably best to aim for the latter. Starting from Sagte 6.0 i think its feasible to use the

If you attempt to install Sage on a Windows machine, be sure to follow the instructions for VMware and not VirtualBox. Apparently, VirtualBox is not supported anymore. Once you know this, it is quite easy to get Sage up and running. Simply

  1. Download the sage-vmware zip file and extract it.
  2. Download and install the VMware player.
  3. Double click the sage-vmware.vmx file


To get started

Diving deeper

Advanced matters

SymPy is a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python and does not require any external libraries. It is intended to be fully integrable with Sage and Numpy. Now you can use Numpy in many Sage functions eg integral() for solving integrals symbolically.

category: software