Software:SageMath

From HandWiki
Short description: Computer algebra system
SageMath
Sage-logo-2018.svg
Sagemath-jupyter-screenshot.png
Sagemath document (Jupyter Notebook) inside a web browser
Initial release24 February 2005; 18 years ago (2005-02-24)
Stable release
Preview release
10.2.rc3 / 14 November 2023; 3 months ago (2023-11-14)
Written inPython, Cython
Operating systemLinux, macOS, Microsoft Windows, Solaris, Android, iOS
Platform
SizeApprox. 112–3319 MB
TypeComputer algebra system
LicenseGPLv3[1]
Websitewww.sagemath.org

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

William A. Stein

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.[7]

Achievements

  • 2007: first prize in the scientific software division of Les Trophées du Libre, an international competition for free software.[8]
  • 2012: one of the projects selected for the Google Summer of Code.[9]
  • 2013: ACM/SIGSAM Jenks Prize.[10]

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.[1]

Although Microsoft was sponsoring a native version of SageMath for the Windows operating system, prior to 2016 there were no plans for a native port, and users of Windows had to use virtualization technology such as VirtualBox to run SageMath.[12] SageMath 8.0 (July 2017), with development funded by the OpenDreamKit project,[7] successfully built on Cygwin, and a binary installer for 64-bit versions of Windows was available.[13] As of SageMath 10.0 (May 2023), it requires Windows Subsystem for Linux in version 2,[14] which in turn requires Windows to run as a Hyper-V client.

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.

Mathematics packages
contained in SageMath[16]
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[17] (formerly jsMath)
Graphics matplotlib, Tachyon, GD, Jmol
Interactive programming language Python
Networking Twisted
Other Mathematics package
available for SageMath
Differential geometry and tensor calculus Sage Manifolds

See also

References

  1. 1.0 1.1 "COPYING.txt – sage.git". The Sage Repository. https://git.sagemath.org/sage.git/tree/COPYING.txt. 
  2. Stein, William. "SAGE: A Computer System for Algebra and Geometry Experimentation". http://wstein.org/sage.html. 
  3. Stein, William (12 June 2007). "Sage Days 4". https://www.sagemath.org/why/stein-sd4.pdf. 
  4. Anastassiou, George A.; Mezei, Razvan A. (2015). Numerical Analysis Using Sage. New York: Springer. pp. x1 and 1. ISBN 9783319167381. https://drive.google.com/open?id=0B_q6VhhkczIYMy1jaDlGTGhPS00. 
  5. "Sage Days 7: Combinatorics". 14 November 2008. http://wiki.sagemath.org/days7. 
  6. "Sage – Acknowledgement to Supporters". https://www.sagemath.org/development-ack.html. 
  7. 7.0 7.1 7.2 William Stein: The origins of SageMath – creating a viable open source alternative to Magma, Maple, Mathematica, and Matlab (presentation, 11 June 2016)
  8. "Free Software Brings Affordability, Transparency To Mathematics". Science Daily. 7 December 2007. https://www.sciencedaily.com/releases/2007/12/071206145213.htm. 
  9. "Sage Mathematical Software System". https://www.google-melange.com/archive/gsoc/2012/orgs/sage. 
  10. "Richard Dimick Jenks Memorial Prize 2013 Award". http://www.sigsam.org/awards/jenks/awardees/2013/. 
  11. Stein, William (3 November 2010). "Cython, Sage, and the Need for Speed". http://sagemath.blogspot.com/2010/11/cython-sage-and-need-for-speed.html. 
  12. Stein, William (16 March 2012). "Re: Question about Sage". https://groups.google.com/d/topic/sage-devel/LTWgQ_24cPs/discussion. 
  13. Lelievre, Samuel (18 August 2017). "SageMath 8.0 installer for Windows". https://groups.google.com/d/msg/sage-announce/lznROhGi-2U/CPRsY7zZAwAJ. 
  14. "Welcome to Sage Installation Guide". 1 May 2023. https://doc.sagemath.org/html/en/installation/index.html. 
  15. "sage-on-gentoo Wiki". https://github.com/cschwan/sage-on-gentoo/wiki. 
  16. "Standard Packages". http://doc.sagemath.org/html/en/installation/standard_packages.html. 
  17. "External Packages — External Packages". https://doc.sagemath.org/html/en/reference/spkg/. 

External links