SageMath

Post tags: | matplotlib | python | sagemath |

sagemath.org/tour.html

http://doc.sagemath.org/html/en/reference/plotting/sage/plot/plot.html 2D Plotting

parametric_plot( (sin(t), sin(2t)), (t, 0, 2pi), color=hue(0.6) )

Installation page

Linux install

Determine my Debian version

        lsb_release -a
        
        No LSB modules are available.
        Distributor ID:	Debian
        Description:	Debian GNU/Linux 8.5 (jessie)
        Release:	8.5
        Codename:	jessie
        

Download Binaries launch page

Download and install for Debian 8

        cd /home/craig/dev/sage/sage-7.3
        wget http://mirrors.xmission.com/sage/linux/64bit/sage-7.3-Debian_GNU_Linux_8-x86_64.tar.bz2
        tar xf sage-7.3-Debian_GNU_Linux_8-x86_64.tar.bz2 
        
Linux install instructions

Verify the unpacked sage script.

        file /home/craig/dev/sage/sage-7.3/SageMath/sage
         ->  a /usr/bin/env bash script, ASCII text executable
        

Another approach is to create a symbolic link, say /usr/local/bin/sage, pointing to the sage bash script.

        ln -s /home/craig/dev/sage/sage-7.3/SageMath/sage ~/bin/sage
        
And run sage

        sage
         ...
        ┌────────────────────────────────────────────────────────────────────┐
        │ SageMath version 7.3, Release Date: 2016-08-04                     │
        │ Type "notebook()" for the browser-based notebook interface.        │
        │ Type "help()" for help.                                            │
        └────────────────────────────────────────────────────────────────────┘
         ...
        

Plotting functions in 2D

        f = exp(-(0.0001) * x)
        f.plot(x,1,40000)