{"schemaVersion":"1.0","record":{"label":"SageMath","description":"Open-source mathematical computing system integrating symbolic, numerical and algebraic tools through Python-based interfaces.","aliases":["Sage"],"kind":"software","website":"https://www.sagemath.org/","overview":"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.","license":"Free and open source under the GNU General Public License","lifecycle":"active","example":false,"features":[{"name":"Integrated mathematical computing","status":"supported","detail":"Combines open-source packages behind a common Python-based interface.","useCase":"Programmatic symbolic mathematics, algebra and numerical exploration","platforms":["Linux","macOS","Windows through WSL"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.sagemath.org/","locator":"GPL, Python-based integration and underlying open-source components","retrievedAt":"2026-10-07T16:00:13Z","kind":"vendor"}]},{"name":"Symbolic calculus","status":"supported","detail":"Tutorials document solving equations, derivatives, integrals and differential equations.","useCase":"Programmatic symbolic mathematics, algebra and numerical exploration","platforms":["Linux","macOS","Windows through WSL"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://doc.sagemath.org/html/en/tutorial/tour_algebra.html","locator":"Equation solving, differentiation, integration and Maxima-backed differential equations","retrievedAt":"2026-10-07T16:02:42Z","kind":"vendor"}]},{"name":"Object persistence","status":"limited","detail":"Many objects can be serialized, but external-system objects and changed class definitions can prevent reloading.","useCase":"Programmatic symbolic mathematics, algebra and numerical exploration","platforms":["Linux","macOS","Windows through WSL"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://doc.sagemath.org/html/en/tutorial/interactive_shell.html","locator":"Object/session persistence, external-system objects and cross-version caveats","retrievedAt":"2026-10-07T16:02:42Z","kind":"vendor"}]},{"name":"Windows installation","status":"limited","detail":"The documented Windows path uses WSL rather than a conventional native desktop installer.","useCase":"Programmatic symbolic mathematics, algebra and numerical exploration","platforms":["Linux","macOS","Windows through WSL"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://doc.sagemath.org/html/en/installation/","locator":"Linux and macOS options; Windows through WSL; hosted services distinguished","retrievedAt":"2026-10-07T16:00:01Z","kind":"vendor"}]}],"alternatives":[],"slug":"sagemath","draftAlternatives":[{"targetSlug":"wolfram-mathematica","status":"limited","detail":"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.","useCase":"Programmatic symbolic mathematics, algebra and numerical exploration","platforms":["Linux","macOS","Windows through WSL"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.sagemath.org/","locator":"GPL, Python-based integration and underlying open-source components","retrievedAt":"2026-10-07T16:00:13Z","kind":"vendor"},{"url":"https://doc.sagemath.org/html/en/tutorial/tour_algebra.html","locator":"Equation solving, differentiation, integration and Maxima-backed differential equations","retrievedAt":"2026-10-07T16:02:42Z","kind":"vendor"},{"url":"https://www.wolfram.com/mathematica/","locator":"Symbolic/numerical computation and Wolfram Language notebooks","retrievedAt":"2026-10-07T16:00:24Z","kind":"vendor"},{"url":"https://doc.sagemath.org/html/en/reference/repl/sage/repl/preparse.html","locator":"Integer and real literals, exponentiation and conversion to Python syntax","retrievedAt":"2026-10-07T16:02:51Z","kind":"vendor"}]}],"evidence":[{"url":"https://www.sagemath.org/","locator":"GPL, Python-based integration and underlying open-source components","retrievedAt":"2026-10-07T16:00:13Z","kind":"vendor"},{"url":"https://doc.sagemath.org/html/en/installation/","locator":"Linux and macOS options; Windows through WSL; hosted services distinguished","retrievedAt":"2026-10-07T16:00:01Z","kind":"vendor"},{"url":"https://doc.sagemath.org/html/en/tutorial/interactive_shell.html","locator":"Object/session persistence, external-system objects and cross-version caveats","retrievedAt":"2026-10-07T16:02:42Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://www.sagemath.org/","locator":"GPL, Python-based integration and underlying open-source components","retrievedAt":"2026-10-07T16:00:13Z","id":"home","title":"SageMath project overview","kind":"vendor"},{"url":"https://doc.sagemath.org/html/en/installation/","locator":"Linux and macOS options; Windows through WSL; hosted services distinguished","retrievedAt":"2026-10-07T16:00:01Z","id":"install","title":"SageMath installation guide","kind":"vendor"},{"url":"https://doc.sagemath.org/html/en/reference/repl/sage/repl/preparse.html","locator":"Integer and real literals, exponentiation and conversion to Python syntax","retrievedAt":"2026-10-07T16:02:51Z","id":"preparse","title":"The Sage preparser","kind":"vendor"},{"url":"https://doc.sagemath.org/html/en/tutorial/interactive_shell.html","locator":"Object/session persistence, external-system objects and cross-version caveats","retrievedAt":"2026-10-07T16:02:42Z","id":"shell","title":"Sage interactive shell tutorial","kind":"vendor"},{"url":"https://doc.sagemath.org/html/en/tutorial/tour_algebra.html","locator":"Equation solving, differentiation, integration and Maxima-backed differential equations","retrievedAt":"2026-10-07T16:02:42Z","id":"algebra","title":"Sage basic algebra and calculus","kind":"vendor"},{"url":"https://www.wolfram.com/mathematica/","locator":"Symbolic/numerical computation and Wolfram Language notebooks","retrievedAt":"2026-10-07T16:00:24Z","id":"mathematica","title":"Wolfram Mathematica overview","kind":"vendor"}],"overviewCitations":["home","install","shell"],"licenseCitations":["home"],"sections":[{"id":"workflow","heading":"Integrated mathematical work","paragraphs":[{"id":"workflow-detail","content":[{"text":"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."}],"citations":["home","algebra"]}]},{"id":"language","heading":"Sage syntax and Python","paragraphs":[{"id":"language-detail","content":[{"text":"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."}],"citations":["preparse"]}]},{"id":"objects","heading":"Saving mathematical objects","paragraphs":[{"id":"objects-detail","content":[{"text":"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."}],"citations":["shell"]}]},{"id":"sessions","heading":"Restoring a session","paragraphs":[{"id":"sessions-detail","content":[{"text":"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."}],"citations":["shell"]}]},{"id":"availability","heading":"Installation and hosted options","paragraphs":[{"id":"availability-detail","content":[{"text":"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."}],"citations":["install","home"]}]},{"id":"substitution","heading":"Substitution considerations","paragraphs":[{"id":"substitution-detail","content":[{"text":"SageMath can substitute for "},{"text":"Wolfram Mathematica","targetSlug":"wolfram-mathematica"},{"text":" 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."}],"citations":["home","algebra","mathematica","preparse","shell"]}]}]},"id":"Q639","revision":687,"updatedAt":"2026-10-13T00:51:18Z","sourceUrl":"https://substitutefor.net/entities/Q639?revision=687"}}