Macaulay2 is a free computer algebra system created by Daniel Grayson (from the University of Illinois at Urbana–Champaign) and Michael Stillman (from Cornell University) for computation in commutative algebra and algebraic geometry. Overview Macaulay2 is built around fast implementations of algorithms useful for computation in commutative algebra and algebraic geometry. This core functionality includes arithmetic on rings, modules, and matrices, as well as algorithms for Gröbner bases, free resolutions, Hilbert series, determinants and Pfaffians, factoring, and similar. In addition, the system has been extended by a large number of packages. Nearly 200 packages are included in the distribution of Macaulay2 as of 2019, and notable package authors include Craig Huneke and Frank-Olaf Schreyer. The Journal of Software for Algebra and Geometry has published numerous packages and programs for Macaulay2. Macaulay2 has an interactive command-line interface used from the terminal (see ). It can also use emacs or GNU TeXmacs as a user interface. Macaulay2 uses its own interpreted high-level programming language both from the command line and in saved programs. This language is intended to be easy to use for mathematicians, and many parts of the system are indeed written in the Macaulay2 language. The algebraic algorithms that form the core functionality are written in C++ for speed. The interpreter itself is written in a custom type safety layer over C. Both the system and the programming language are published under the GNU General Public License version 2 or 3. History Stillman, along with Dave Bayer had authored the predecessor system, Macaulay, beginning in 1983. They named Macaulay after Francis Sowerby Macaulay, an English mathematician who made significant contributions to algebraic geometry. The Macaulay system showed that it was possible to solve actual problems in algebraic geometry using Gröbner basis techniques, but by the early 1990s, limitations in its architecture were becoming an obstruction. Using the experience with Macaulay, Grayson and Stillman began work on Macaulay2 in 1993. The Macaulay2 language and design has a number of improvements over that of Macaulay, allowing for infinite coefficient rings, new data types, and other useful features. Macaulay continued to be updated and used for some time after the 1993 introduction of Macaulay2. The last released version was 3.1, from August 2000. The Macaulay webpage currently recommends switching to Macaulay2. Macaulay2 has been updated regularly since its introduction. David Eisenbud has been listed as a collaborator on the project since 2007. Sample session