Maxima (software)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Maxima
DevelopersMacsyma group at Project MAC and volunteer contributors
Initial release1982; 44 years ago (1982)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inCommon Lisp
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemCross-platform
    TypeMathematical software
    LicenseGPL
    Websitemaxima.sourceforge.io

    Maxima (/ˈmæksɪmə/) is a software package for performing computer algebra calculations in mathematics and the physical sciences. 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).

    History

    [edit | edit source]

    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

    [edit | edit source]

    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

    [edit | edit source]

    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

    [edit | edit source]

    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

    [edit | edit source]
    File:WxMaxima 0.7.1 screenshot.png
    Screenshot of the wxMaxima interface for Maxima

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

    • wxMaxima[3] is high-quality graphical front-end using the wxWidgets framework. wxMaxima provides a cell structure similar to the Mathematica notebook as shown in the figure to the right. Sessions in wxMaxima can be saved in a variety of file formats for later use.
    • There is a kernel for Project Jupyter, a flexible, notebook-style GUI written in Python.[4]
    • Cantor, using Qt, can interface with Maxima (along with SageMath, R, and KAlgebra)[5]
    • 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.
    • Climaxima,[6] a CLIM-based front-end.[7]

    Examples of Maxima code

    [edit | edit source]

    Basic operations

    [edit | edit source]

    Arbitrary-precision arithmetic

    [edit | edit source]
    bfloat(sqrt(2)), fpprec=40;
    

    Function

    [edit | edit source]
    f(x):=x^3$
    f(4);
    
    64

    Expand

    [edit | edit source]
    expand((a-b)^3);
    
    b3+3ab23a2b+a3

    Factor

    [edit | edit source]
    factor(x^2-1);
    
    (x1)(x+1)

    Solving equations

    [edit | edit source]
    x2+a x+1=0
    solve(x^2 + a*x + 1, x);
    
    [x=(a24+a2),x=a24a2]

    Solving equations numerically

    [edit | edit source]
    cosx=x
    find_root(cos(x) = x, x, 0, 1);
    
    0.7390851332151607
    bf_find_root(cos(x) = x, x, 0, 1), fpprec = 50;
    
    7.3908513321516064165531208767387340401341175890076101

    Indefinite integral

    [edit | edit source]
    x2+cosx dx
    integrate(x^2 + cos(x), x);
    
    sinx+x33

    Definite integral

    [edit | edit source]
    011x3+1dx
    integrate(1/(x^3 + 1), x, 0, 1), ratsimp;
    
    3log2+π332

    Numerical integral

    [edit | edit source]
    02sin(sin(x))dx
    quad_qags(sin(sin(x)), x, 0, 2)[1];
    
    1.247056058244003

    Derivative

    [edit | edit source]
    d3dx3cos2x
    diff(cos(x)^2, x, 3);
    
    8cosxsinx

    Limit

    [edit | edit source]
    limx1+sinhxex
    limit((1+sinh(x))/exp(x), x, inf);
    
    12

    Number theory

    [edit | edit source]
    primes(10, 20);
    
    [11,13,17,19]
    fib(10);
    
    55

    Series

    [edit | edit source]
    x=11x2
    sum(1/x^2, x, 1, inf), simpsum;
    
    π26

    Series expansion

    [edit | edit source]
    taylor(sin(x), x, 0, 9);
    
    xx36+x5120x75040+x9362880
    niceindices(powerseries(cos(x), x, 0));
    
    i=0(1)ix2i(2i)!

    Special functions

    [edit | edit source]
    bessel_j(0, 4.5);
    
    0.3205425089851214
    airy_ai(1.5);
    
    0.07174949700810543

    See also

    [edit | edit source]

    Lua error in mw.title.lua at line 392: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    7. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

    Further reading

    [edit | edit source]
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]

    Lua error in Module:Authority_control at line 153: attempt to index field 'wikibase' (a nil value).