| SageMath | |
|---|---|
Sagemath document (Jupyter Notebook) inside aweb browser | |
| Initial release | 24 February 2005; 20 years ago (2005-02-24) |
| Stable release | |
| Preview release | 10.8.beta9 / 11 November 2025; 3 months ago (2025-11-11) |
| Written in | Python,Cython |
| Operating system | Linux,macOS,Microsoft Windows,Solaris,Android,iOS |
| Platform |
|
| Size | Approx. 112–3319MB |
| Type | Computer algebra system |
| License | GPLv3[2] |
| Website | www |
| Repository | |
SageMath (previouslySage orSAGE, "System for Algebra and Geometry Experimentation"[3]) is acomputer algebra system (CAS) with features covering many aspects ofmathematics, includingalgebra,combinatorics,graph theory,group theory,differentiable manifolds,numerical analysis,number theory,calculus, andstatistics.
The first version of SageMath was released on 24 February 2005 asfree and open-source software under the terms of theGNU General Public License version 2, with the initial goals of creating an "open source alternative toMagma,Maple,Mathematica, andMATLAB".[4] The originator and leader of the SageMath project,William Stein, was amathematician at theUniversity of Washington.
SageMath uses asyntax resemblingPython's,[5] supportingprocedural,functional, andobject-oriented constructs.

Stein realized when designing Sage that there were manyopen-source mathematics software packages already written in differentlanguages, namelyC,C++,Common Lisp,Fortran andPython.
Rather thanreinventing the wheel, Sage (which is written mostly in Python andCython) integrates many specializedCAS software packages into a common interface, for which a user needs to know only Python. However, Sage contains hundreds of thousands of unique lines ofcode adding newfunctions and creating the interfaces among its components.[6]
SageMath uses both students and professionals for development. The development of SageMath is supported by bothvolunteer work andgrants.[7] However, it was not until 2016 that the first full-time Sage developer was hired (funded by anEU grant).[8] The same year, Stein described his disappointment with a lack of academic funding and credentials for software development, citing it as the reason for his decision to leave his tenured academic position to work full-time on the project in a newly founded company, SageMath Inc.[8]
SageMath isfree software, distributed under the terms of theGNU General Public License version 3.[2]
SageMath 10.0 (May 2023) requiresWindows Subsystem for Linux in version 2,[12] which in turn requires Windows to run as aHyper-V client. SageMath 8.0 (July 2017), with development funded by theOpenDreamKit project,[8] successfully built onCygwin, and a binary installer for 64-bit versions of Windows was available.[13] Although Microsoft was sponsoring a Windows version of SageMath, prior to 2016 users of Windows had to usevirtualization technology such asVirtualBox to run SageMath.[14]
SageMath is available as a package in someLinux distributions, includingArch Linux,Debian,Guix,[15]Ubuntu andNixOS. InGentoo, it is available via layman in the "sage-on-gentoo"[16] overlay. The packages used by NixOS and Gnu Guix are available for use on other distributions, due to the distribution-agnostic nature of their package managers.
Gentoo prefix also provides Sage on other operating systems.
The philosophy of SageMath is to use existing open-sourcelibraries wherever they exist. Therefore, it uses many libraries from other projects.
| Mathematics packages contained in SageMath[17] | Algebra | GAP,Singular,FLINT |
|---|---|---|
| Algebraic geometry | Singular | |
| Arbitrary-precision arithmetic | GMP,MPFR,MPFI,NTL,mpmath,Arb | |
| Arithmetic geometry | PARI/GP,NTL,mwrank,ECM | |
| Calculus | Maxima,SymPy,GiNaC,Giac,FriCAS | |
| Combinatorics | Symmetrica, Sage-Combinat | |
| Linear algebra | ATLAS,BLAS,LAPACK,NumPy,LinBox,IML,GSL | |
| Graph theory | NetworkX | |
| Group theory | GAP | |
| Numerical computation | GSL,SciPy,NumPy, ATLAS | |
| Number theory | PARI/GP,FLINT,NTL | |
| Statistical computing | R,SciPy | |
| Other packages contained in SageMath | Command-line shell | IPython |
| Database | ZODB,SQLite | |
| Graphical interface | SageMath Notebook,MathJax[18] (formerlyjsMath) | |
| Graphics | matplotlib,Tachyon,GD,Jmol | |
| Interactive programming language | Python | |
| Networking | Twisted | |
| Other Mathematics package available for SageMath | Differential geometry andtensor calculus | Sage Manifolds |
{{cite web}}:Missing or empty|title= (help)