SageMath explained

SageMath
Latest Preview Version:10.3.rc2
Programming Language:Python, Cython
Operating System:Linux, macOS, Microsoft Windows, Solaris, Android, iOS
Size:Approx. 112–3319 MB
Genre:Computer algebra system
License:GPLv3[1]

SageMath (previously Sage or SAGE, "System for Algebra and Geometry Experimentation"[2]) is a computer algebra system (CAS) with features covering many aspects of mathematics, including algebra, combinatorics, graph theory, group theory, differentiable manifolds, numerical analysis, number theory, calculus and statistics.

The first version of SageMath was released on 24 February 2005 as free and open-source software under the terms of the GNU General Public License version 2, with the initial goals of creating an "open source alternative to Magma, Maple, Mathematica, and MATLAB".[3] The originator and leader of the SageMath project, William Stein, was a mathematician at the University of Washington.

SageMath uses a syntax resembling Python's,[4] supporting procedural, functional and object-oriented constructs.

Development

Stein realized when designing Sage that there were many open-source mathematics software packages already written in different languages, namely C, C++, Common Lisp, Fortran and Python.

Rather than reinventing the wheel, Sage (which is written mostly in Python and Cython) integrates many specialized CAS software packages into a common interface, for which a user needs to know only Python. However, Sage contains hundreds of thousands of unique lines of code adding new functions and creating the interfaces among its components.[5]

SageMath uses both students and professionals for development. The development of SageMath is supported by both volunteer work and grants.[6] However, it was not until 2016 that the first full-time Sage developer was hired (funded by an EU grant).[7] 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.

Achievements

Performance

Both binaries and source code are available for SageMath from the download page. If SageMath is built from source code, many of the included libraries such as OpenBLAS, FLINT, GAP (computer algebra system), and NTL will be tuned and optimized for that computer, taking into account the number of processors, the size of their caches, whether there is hardware support for SSE instructions, etc.

Cython can increase the speed of SageMath programs, as the Python code is converted into C.[11]

Licensing and availability

SageMath is free software, distributed under the terms of the GNU General Public License version 3.

SageMath 10.0 (May 2023) requires Windows Subsystem for Linux in version 2,[12] which in turn requires Windows to run as a Hyper-V client. SageMath 8.0 (July 2017), with development funded by the OpenDreamKit project, successfully built on Cygwin, 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 use virtualization technology such as VirtualBox to run SageMath.[14]

Linux distributions in which SageMath is available as a package are Fedora, Arch Linux, Debian, Ubuntu and NixOS. In Gentoo, it is available via layman in the "sage-on-gentoo"[15] overlay. The package used by NixOS is available for use on other distributions, due to the distribution-agnostic nature of its package manager, Nix.

Gentoo prefix also provides Sage on other operating systems.

Software packages contained in SageMath

The philosophy of SageMath is to use existing open-source libraries wherever they exist. Therefore, it uses many libraries from other projects.

rowspan="12" Mathematics packages
contained in SageMath[16]
AlgebraGAP, Singular, FLINT
Algebraic geometrySingular
Arbitrary-precision arithmeticGMP, MPFR, MPFI, NTL, mpmath, Arb
Arithmetic geometryPARI/GP, NTL, mwrank, ECM
CalculusMaxima, SymPy, GiNaC, Giac, FriCAS
CombinatoricsSymmetrica, Sage-Combinat
Linear algebraATLAS, BLAS, LAPACK, NumPy, LinBox, IML, GSL
Graph theoryNetworkX
Group theoryGAP
Numerical computationGSL, SciPy, NumPy, ATLAS
Number theoryPARI/GP, FLINT, NTL
Statistical computingR, SciPy
rowspan="6" Other packages
contained in SageMath
Command-line shellIPython
DatabaseZODB, SQLite
Graphical interfaceSageMath Notebook, MathJax[17] (formerly jsMath)
Graphicsmatplotlib, Tachyon, GD, Jmol
Interactive programming languagePython
NetworkingTwisted
Other Mathematics package
available for SageMath
Differential geometry and tensor calculusSage Manifolds

See also

Notes and References

  1. Web site: COPYING.txt – sage.git. The Sage Repository. 4 April 2017. 14 March 2017. https://web.archive.org/web/20170314063622/https://git.sagemath.org/sage.git/tree/COPYING.txt. dead.
  2. Web site: Stein. William. SAGE: A Computer System for Algebra and Geometry Experimentation. 30 March 2012.
  3. Web site: Stein . William . Sage Days 4 . 12 June 2007 . 2 August 2007 . https://web.archive.org/web/20070627235122/https://www.sagemath.org/why/stein-sd4.pdf . 27 June 2007.
  4. Book: Numerical Analysis Using Sage . Springer . Anastassiou . George A. . Mezei . Razvan A. . 2015 . New York . x1 and 1 . 9783319167381.
  5. Web site: Sage Days 7: Combinatorics. 14 November 2008. SageWiki. 9 December 2013.
  6. Web site: Sage – Acknowledgement to Supporters. 6 January 2017.
  7. William Stein: The origins of SageMath – creating a viable open source alternative to Magma, Maple, Mathematica, and Matlab (presentation, 11 June 2016)
  8. Web site: Free Software Brings Affordability, Transparency To Mathematics. 7 December 2007. Science Daily. 6 January 2017.
  9. Web site: Sage Mathematical Software System. Google Summer of Code / Code-in Archive. 6 January 2017.
  10. Web site: Richard Dimick Jenks Memorial Prize 2013 Award. Association for Computing Machinery – SIGSAM. 6 January 2017.
  11. Web site: Cython, Sage, and the Need for Speed. Stein. William. 3 November 2010. 6 January 2017.
  12. Web site: Welcome to Sage Installation Guide. 1 May 2023. 28 July 2023.
  13. Web site: SageMath 8.0 installer for Windows. Lelievre. Samuel. 18 August 2017. 28 August 2017.
  14. Web site: Re: Question about Sage. Stein. William. 16 March 2012. 6 January 2017.
  15. Web site: sage-on-gentoo Wiki. . 6 January 2017.
  16. Web site: Standard Packages. doc.sagemath.org. 6 January 2017.
  17. Web site: External Packages — External Packages .