Maxima

Short description: Computer algebra system

Maxima

Screenshot of Maxima, plotting the 2D graph of a function with the gnuplot-x11 package running on Ubuntu Linux

Developer(s)| Macsyma group at Project MAC and volunteer contributors
Initial release| 1982; 44 years ago (1982)
Written in| Common Lisp
Operating system| Cross-platform
Type| Mathematical software
License| GPL
Website| maxima.sourceforge.io

Maxima (/ˈmæksɪmə/) is a computer algebra system (CAS) based on a 1982 version of Macsyma and is still in development today. It is written in Common Lisp and runs on all POSIX platforms such as macOS, Unix, BSD, and Linux, as well as under Microsoft Windows and Android. It is free software released under the terms of the GNU General Public License (GPL).

## Contents

* 1 History
* 2 Symbolic calculations
* 2.1 Numeric calculations
* 2.2 Programming
* 3 Interfaces
* 4 Examples of Maxima code
* 4.1 Basic operations
* 4.1.1 Arbitrary-precision arithmetic
* 4.1.2 Function
* 4.1.3 Expand
* 4.1.4 Factor
* 4.2 Solving equations
* 4.3 Solving equations numerically
* 4.4 Indefinite integral
* 4.5 Definite integral
* 4.6 Numerical integral
* 4.7 Derivative
* 4.8 Limit
* 4.9 Number theory
* 4.10 Series
* 4.11 Series expansion
* 4.12 Special functions
* 5 See also
* 6 References
* 7 Further reading
* 8 External links

## History

Maxima is based on a 1982 version of Macsyma, which was developed at MIT with funding from the United States Department of Energy and other government agencies. A version of Macsyma was maintained by Bill Schelter from 1982 until his death in 2001. In 1998, Schelter obtained permission from the Department of Energy to release his version under the GPL. That version, now called Maxima, is maintained by an independent group of users and developers. Maxima does not include any of the many modifications and enhancements made to the commercial version of Macsyma during 1982–1999. Though the core functionality remains similar, code depending on these enhancements may not work on Maxima, and bugs which were fixed in Macsyma may still be present in Maxima, and vice versa. Maxima participated in Google Summer of Code in 2019 under International Neuroinformatics Coordinating Facility.[1]

## Symbolic calculations

Like most computer algebra systems, Maxima supports a variety of ways of reorganizing symbolic algebraic expressions, such as polynomial factorization, polynomial greatest common divisor calculation, expansion, separation into real and imaginary parts, and transformation of trigonometric functions to exponential and vice versa. It has a variety of techniques for simplifying algebraic expressions involving trigonometric functions, roots, and exponential functions. It can calculate symbolic antiderivatives ("indefinite integrals"), definite integrals, and limits. It can derive closed-form series expansions as well as terms of Taylor-Maclaurin-Laurent series. It can perform matrix manipulations with symbolic entries.

Maxima is a general-purpose system, and special-case calculations such as factorization of large numbers, manipulation of extremely large polynomials, etc. are sometimes better done in specialized systems.

### Numeric calculations

Maxima specializes in symbolic operations, but it also offers numerical capabilities[2] such as arbitrary-precision integer, rational number, and floating-point numbers, limited only by space and time constraints.

### Programming

Maxima includes a complete programming language with ALGOL-like syntax but Lisp-like semantics. It is written in Common Lisp and can be accessed programmatically and extended, as the underlying Lisp can be called from Maxima. It uses gnuplot for drawing.

For calculations using floating point and arrays heavily, Maxima has translators from the Maxima language to other programming languages (notably Fortran), which may execute more efficiently.

## Interfaces

Screenshot of the wxMaxima interface for Maxima

Various graphical user interfaces (GUIs) are available for Maxima:

* wxMaxima[3] is a graphical front-end using wxWidgets.
* There is a kernel for Project Jupyter, a flexible, notebook-style GUI written in Python.[4]
* GMaxima is a Maxima interface using GTK+.[5]
* Cantor, using Qt, can interface with Maxima (along with SageMath, R, and KAlgebra)[6]
* The GNU TeXmacs and LyX mathematical editor programs can be used to provide an interactive GUI for Maxima, as can SageMath. Other options include the Imaxima front end, as well as an Emacs and XEmacs interaction mode which is activated by Imaxima.
* Kayali[7]
* Climaxima,[8] a CLIM-based front-end.[9]

## Examples of Maxima code

### Basic operations

#### Arbitrary-precision arithmetic

bfloat(sqrt(2)), fpprec=40;

1.41421356237309504880168872420969807857⋅100

#### Function

f(x):=x^3$
f(4);

#### Expand

expand((a-b)^3);

−b3+3ab2−3a2b+a3

#### Factor

factor(x^2-1);

(x−1)(x+1)

### Solving equations

x2+a x+1=0

solve(x^2 + a*x + 1, x);

[x=−(a2−4+a2),x=a2−4−a2]

### Solving equations numerically

cos⁡x=x

find_root(cos(x) = x, x, 0, 1);

0.7390851332151607

bf_find_root(cos(x) = x, x, 0, 1), fpprec = 50;

7.3908513321516064165531208767387340401341175890076⋅10−1

### Indefinite integral

∫x2+cos⁡x dx

integrate(x^2 + cos(x), x);

sin⁡x+x33

### Definite integral

∫011x3+1dx

integrate(1/(x^3 + 1), x, 0, 1), ratsimp;

3log⁡2+π332

### Numerical integral

∫02sin⁡(sin⁡(x))dx

quad_qags(sin(sin(x)), x, 0, 2)[1];

1.247056058244003

### Derivative

d3dx3cos2x

diff(cos(x)^2, x, 3);

8cos⁡xsin⁡x

### Limit

limx->∞1+sinh⁡xex

limit((1+sinh(x))/exp(x), x, inf);

### Number theory

primes(10, 20);

[11,13,17,19]

fib(10);

### Series

∑x=1∞1x2

sum(1/x^2, x, 1, inf), simpsum;

π26

### Series expansion

taylor(sin(x), x, 0, 9);

x−x36+x5120−x75040+x9362880

niceindices(powerseries(cos(x), x, 0));

∑i=0∞(−1)ix2i(2i)!

### Special functions

bessel_j(0, 4.5);

−0.3205425089851214

airy_ai(1.5);

0.07174949700810543

## See also

* Comparison of computer algebra systems
* SageMath, a free mathematics software which borrows many libraries from Maxima

## References

1. ↑ "GSOC 2019 completed successfully » Belgian Neuroinformatics". http://neuroinformatics.be/gsoc2019-completed/.
2. ↑ Barnes, David J.; Chu, Dominique (2010). "Chapter 5". Introduction to Modeling for Biosciences. Springer. ISBN 978-1-84996-325-1.
3. ↑ "wxMaxima, a document based interface for the computer algebra system Maxima". https://wxmaxima-developers.github.io/wxmaxima/.
4. ↑ "Maxima-Jupyter". 13 October 2021. https://github.com/robert-dodier/maxima-jupyter.
5. ↑ "GMaxima :: Home". http://gmaxima.ackovosrot.cz/.
6. ↑ "Cantor". https://cantor.kde.org/.
7. ↑ "Kayali download". SourceForge. 19 April 2013. http://kayali.sourceforge.net/index.htm.
8. ↑ "Flathub—An app store and build service for Linux". https://flathub.org/apps/details/com.dhsdevelopments.Climaxima.
9. ↑ Mårtenson, Elias (2019-08-27), GitHub - lokedhs/maxima-client: Maxima client., https://github.com/lokedhs/maxima-client, retrieved 2019-09-27

## Further reading

* Timberlake, Todd Keene; Mixon Jr., J. Wilson (2015). Classical Mechanics with Maxima. Springer. ISBN 978-1-4939-3206-1.

## External links

* wxMaxima

* v
* t
* e

Computer algebra systems

Open-source|

* Axiom
* Cadabra
* CoCoA
* Erable
* Fermat
* FriCAS
* FORM
* GAP
* GiNaC
* Macaulay2
* Maxima
* Normaliz
* PARI/GP
* Reduce
* SageMath
* Singular
* SymPy
* Xcas/Giac
* Yacas

Proprietary|

* ClassPad Manager
* KANT
* Magma
* Maple
* Mathcad
* Mathematica
* muPAD (MATLAB symbolic math toolbox)
* SMath Studio
* TI InterActive!

Discontinued|

* CAMAL
* Derive
* LiveMath
* Macsyma
* Mathomatic
* muMATH

* Category
* List

* v
* t
* e

Numerical-analysis software

Free|

* Advanced Simulation Library
* ADMB
* Chapel
* Euler
* FEATool Multiphysics
* Fortress
* FreeFem++
* FreeMat
* Genius
* Gmsh
* GNU Octave
* gretl
* Julia
* Maxima
* MFEM
* OpenFOAM
* R
* SageMath
* Salome
* ScicosLab
* Scilab
* X10
* Weka

Proprietary|

* DADiSP
* GAUSS
* LabVIEW
* Maple
* Mathcad
* Mathematica
* MATLAB
* Speakeasy
* VisSim

* List of numerical-analysis software
* Comparison of numerical-analysis software

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Maxima&oldid=792584"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template