Can Sage Replace Maple and Mathematica?: Randall Pruim
Can Sage Replace Maple and Mathematica?: Randall Pruim
Randall Pruim
Calvin College
slides available at
http://www.calvin.edu/~rpruim/talks/
What is Sage? Questions and Answers Evidence Links
What is Sage?
According to http://sagemath.org:
What is Sage?
According to http://sagemath.org:
What is Sage?
According to http://sagemath.org:
Other features:
• Web browser interface
• Kernel can be installed locally (independence), or
accessed via public servers (zero set-up time)
• Integrates with LATEX
What is Sage? Questions and Answers Evidence Links
A. I think so.
What is Sage? Questions and Answers Evidence Links
A. I think so.
A. I think so.
A. Definitely.
Even if it does not become your only or primary CAS, it
likely has niche to fill in your toolkit.
What is Sage? Questions and Answers Evidence Links
A. I think so.
A. Definitely.
Even if it does not become your only or primary CAS, it
likely has niche to fill in your toolkit.
A. I think so.
A. Definitely.
Even if it does not become your only or primary CAS, it
likely has niche to fill in your toolkit.
Some Evidence
We’ll look at a few examples that demonstrate some of Sage’s
strengths:
• Ubiquity
• Conformity
• Community
• Universality
What is Sage? Questions and Answers Evidence Links
Ubiquity
Because sage is
• free, and
• available via a web browser,
This simplest way to start with Sage is via the online worksheet
interface at sagemath.org.
Conformity
Sage pulls together open source utilities from a number of
different origins and brings them together into one (mostly)
coherent system.
Sage is built on the python programming language.
• Sage skills transfer to Python
• Python skills transfer to Sage
Python
• comprehensive, high level programming language
• light syntax
• good for scripting, prototyping
• interpreted
• libraries of utilities for the sciences
What is Sage? Questions and Answers Evidence Links
Community
LATEX code
The sum of $1+2+\sqrt{3}
= \sage{1+2+sqrt(3)}
= \sage{round(1+2+sqrt(3),4)}$
Workflow
LATEX, Sage, LATEX
• works with pdflatex, custom rules exist for latexmk
What is Sage? Questions and Answers Evidence Links
output
There are
6255423473879432172551153347179787953125682826
LATEX code
There are \[\sage{number_of_partitions(2010)}\]
integer partitions of 2010.
What is Sage? Questions and Answers Evidence Links
Code
\begin{sagesilent}
f(x) = exp(x) * sin(2*x) \end{sagesilent},
0.5
1 2 3 4 5 6
-0.5
-1
code
\sageplot{plot(sin(x), x, 0, 2*pi)}
What is Sage? Questions and Answers Evidence Links
Universality
From sagemath.org:
Links
http://www.calvin.edu/~rpruim/talks/
http://sagemath.org/
http://localhost:8000/
http://www.python.org/