# SageMath

Open\-source mathematical computing system integrating symbolic, numerical and algebraic tools through Python\-based interfaces\.

ID: Q639 · Revision: 687

Type: software · License: Free and open source under the GNU General Public License[^home] · Status: active

Website: https://www.sagemath.org/



SageMath is a free mathematical computing system that brings multiple open\-source packages into a shared Python\-based environment\. It supports symbolic and numerical work through libraries, an interactive shell and notebook workflows\. Its integrated distribution is distinct from a single symbolic library, while platform setup and object types remain important parts of using it reliably\.[^home][^install][^shell]

## Integrated mathematical work

SageMath combines components including NumPy, SciPy, SymPy, Maxima and specialized algebra systems\. Its calculus tutorial demonstrates equation solving, differentiation, integration and differential equations; some operations call an underlying package such as Maxima\. The common interface therefore coordinates several implementations rather than making every result originate from one engine\. Knowing the relevant object and backend helps when interpreting documentation or reproducing a computation\.[^home][^algebra]

## Sage syntax and Python

Sage input is Python\-based, but a preparsing step changes some notation and numeric literals\. For example, the documentation shows a fractional literal converted to operations on Sage integers and a caret exponent converted to Python's exponent operator\. Consequently, code copied between a Sage cell and an ordinary Python file may need adjustment\. Similar\-looking syntax is not sufficient to guarantee the same types or numerical behavior\.[^preparse]

## Saving mathematical objects

The tutorial describes compressed object files and session dictionaries for preserving values\. Many objects retain cached calculations, but objects tied to some external algebra sessions may reload as invalid\. Cross\-version loading also depends on the relevant class definitions still being available\. This makes saved objects useful working artifacts, while executable source and the software environment remain important for longer\-term reproducibility\.[^shell]

## Restoring a session

Loading a saved session merges its variables into the current session rather than first clearing existing definitions\. Variables that could not be saved may be absent\. A session log is another mechanism: it records instructions that can be replayed, rather than necessarily preserving the same cached state\. A shared computation should identify which of these artifacts it supplies and what must be reconstructed\.[^shell]

## Installation and hosted options

The installation guide offers Linux distribution or conda\-forge routes and a self\-contained Mac build or conda\-forge installation\. On Windows, it directs users through WSL and a Linux environment\. Notebook use involves Jupyter and the Sage kernel\. Separately, the guide lists hosted options such as a free quick\-computation service and commercial CoCalc; their service arrangements should not be confused with the free local software license\.[^install][^home]

## Substitution considerations

SageMath can substitute for [Wolfram Mathematica](/wolframmathematica) for supported algebraic, symbolic and numerical work when a Python\-based environment fits the task\. It does not establish direct execution of Wolfram Language programs or preservation of Mathematica notebook interfaces\. A transition should recreate the calculation in the appropriate Sage types and retain the source, assumptions and environment needed to rerun it\.[^home][^algebra][^mathematica][^preparse][^shell]

## Capabilities and substitutions

### Integrated mathematical computing — supported

Combines open\-source packages behind a common Python\-based interface\.[^home]

Use case: Programmatic symbolic mathematics, algebra and numerical exploration · Platforms: Linux, macOS, Windows through WSL · Region: Version, build and integration requirements apply

### Symbolic calculus — supported

Tutorials document solving equations, derivatives, integrals and differential equations\.[^algebra]

Use case: Programmatic symbolic mathematics, algebra and numerical exploration · Platforms: Linux, macOS, Windows through WSL · Region: Version, build and integration requirements apply

### Object persistence — limited

Many objects can be serialized, but external\-system objects and changed class definitions can prevent reloading\.[^shell]

Use case: Programmatic symbolic mathematics, algebra and numerical exploration · Platforms: Linux, macOS, Windows through WSL · Region: Version, build and integration requirements apply

### Windows installation — limited

The documented Windows path uses WSL rather than a conventional native desktop installer\.[^install]

Use case: Programmatic symbolic mathematics, algebra and numerical exploration · Platforms: Linux, macOS, Windows through WSL · Region: Version, build and integration requirements apply

### [Substitute for Wolfram Mathematica](/wolframmathematica) — limited

Can cover supported symbolic and numerical mathematics tasks in Mathematica; its Python\-based language and object model do not establish direct Wolfram notebook or code compatibility\.[^home][^preparse][^algebra][^mathematica]

Use case: Programmatic symbolic mathematics, algebra and numerical exploration · Platforms: Linux, macOS, Windows through WSL · Region: Version, build and integration requirements apply

## References

[^home]: [SageMath project overview](<https://www.sagemath.org/>) — GPL, Python\-based integration and underlying open\-source components (vendor; retrieved 2026-10-07T16:00:13Z)

[^install]: [SageMath installation guide](<https://doc.sagemath.org/html/en/installation/>) — Linux and macOS options; Windows through WSL; hosted services distinguished (vendor; retrieved 2026-10-07T16:00:01Z)

[^preparse]: [The Sage preparser](<https://doc.sagemath.org/html/en/reference/repl/sage/repl/preparse.html>) — Integer and real literals, exponentiation and conversion to Python syntax (vendor; retrieved 2026-10-07T16:02:51Z)

[^shell]: [Sage interactive shell tutorial](<https://doc.sagemath.org/html/en/tutorial/interactive_shell.html>) — Object/session persistence, external\-system objects and cross\-version caveats (vendor; retrieved 2026-10-07T16:02:42Z)

[^algebra]: [Sage basic algebra and calculus](<https://doc.sagemath.org/html/en/tutorial/tour_algebra.html>) — Equation solving, differentiation, integration and Maxima\-backed differential equations (vendor; retrieved 2026-10-07T16:02:42Z)

[^mathematica]: [Wolfram Mathematica overview](<https://www.wolfram.com/mathematica/>) — Symbolic/numerical computation and Wolfram Language notebooks (vendor; retrieved 2026-10-07T16:00:24Z)

Source revision: https://substitutefor.net/entities/Q639?revision=687
