Maxima (software) explained

Maxima
Developer:Macsyma group at Project MAC and volunteer contributors
Programming Language:Common Lisp
Operating System:Cross-platform
Genre:Mathematical software
License:GPL

Maxima is a powerful 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

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

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

Examples of Maxima code

Basic operations

Arbitrary-precision arithmetic

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

1.41421356237309504880168872420969807857100

Function

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

64

Expand

expand((a-b)^3);

-b3+3ab2-3a2b+a3

Factor

factor(x^2-1);

(x-1)(x+1)

Solving equations

x2+ax+1=0

solve(x^2 + a*x + 1, x);
[x=-l(\sqrt{a2-4
+a}{2}r),x=\sqrt{a2-4
-a}{2}]

Solving equations numerically

\cosx=x

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

0.7390851332151607

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

7.390851332151606416553120876738734040134117589007610-1

Indefinite integral

\intx2+\cosxdx

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

\sinx+

x3
3

Definite integral

1
\int
0
1
x3+1

dx

integrate(1/(x^3 + 1), x, 0, 1), ratsimp;
\sqrt3log2+\pi
3
2
3

Numerical integral

2
\int
0

\sin(\sin(x))dx

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

1.247056058244003

Derivative

{d3\overdx3}\cos2x

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

8\cos{x}\sin{x}

Limit

\limx

1+\sinh{x
}limit((1+sinh(x))/exp(x), x, inf);
1
2

Number theory

primes(10, 20);

[11,13,17,19]

fib(10);

55

Series

infty
\sum
x=1
1
x2

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

Series expansion

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

x-x3+
6
x5-
120
x7+
5040
x9
362880
niceindices(powerseries(cos(x), x, 0));
infty
\sum
i=0
(-1)ix2i
(2i)!

Special functions

bessel_j(0, 4.5);

-0.3205425089851214

airy_ai(1.5);

0.07174949700810543

See also

Further reading

External links

Notes and References

  1. Web site: GSOC 2019 completed successfully » Belgian Neuroinformatics.
  2. Book: Barnes . David J. . Chu . Dominique . amp . Introduction to Modeling for Biosciences . Chapter 5 . . 2010 . 978-1-84996-325-1.
  3. Web site: wxMaxima, a document based interface for the computer algebra system Maxima. 2021-11-29.
  4. Web site: Maxima-Jupyter. GitHub. 13 October 2021.
  5. Web site: GMaxima :: Home . 2014-04-02 . 2018-07-28 . https://web.archive.org/web/20180728160758/http://gmaxima.ackovosrot.cz/ . dead .
  6. Web site: Cantor. cantor.kde.org. 2020-01-15.
  7. Web site: Kayali download. 19 April 2013 . SourceForge. 2015-05-31.
  8. Web site: Flathub—An app store and build service for Linux. flathub.org. 2019-09-27.