Computer algebra system
A computer algebra system is any mathematical software with the ability to manipulate mathematical expressions in a way similar to the traditional manual computations of mathematicians and scientists. The development of the computer algebra systems in the second half of the 20th century is part of the discipline of "computer algebra" or "symbolic computation", which has spurred work in algorithms over mathematical objects such as polynomials.
Computer algebra systems may be divided into two classes: specialized and general-purpose. The specialized ones are devoted to a specific part of mathematics, such as number theory, group theory, or teaching of elementary mathematics.
General-purpose computer algebra systems aim to be useful to a user working in any scientific field that requires manipulation of mathematical expressions. To be useful, a general-purpose computer algebra system must include various features such as:
- a user interface allowing a user to enter and display mathematical formulas, typically from a keyboard, menu selections, mouse or stylus.
- a programming language and an interpreter,
- a simplifier, which is a rewrite system for simplifying mathematics formulas,
- a memory manager, including a garbage collector, needed by the huge size of the intermediate data, which may appear during a computation,
- an arbitrary-precision arithmetic, needed by the huge size of the integers that may occur,
- a large library of mathematical algorithms and special functions.
This large amount of required computer capabilities explains the small number of general-purpose computer algebra systems. The main ones are Axiom, Maxima, Magma, Maple, Mathematica and SageMath.
History
Computer algebra systems began to appear in the 1960s and evolved out of two quite different sources—the requirements of theoretical physicists and research into artificial intelligence.A prime example for the first development was the pioneering work conducted by the later Nobel Prize laureate in physics Martinus Veltman, who designed a program for symbolic mathematics, especially high-energy physics, called Schoonschip in 1963. Another early system was FORMAC.
Using Lisp as the programming basis, Carl Engelman created MATHLAB in 1964 at MITRE within an artificial-intelligence research environment. Later MATHLAB was made available to users on PDP-6 and PDP-10 systems running TOPS-10 or TENEX in universities. Today it can still be used on SIMH emulations of the PDP-10. MATHLAB should not be confused with MATLAB, which is a system for numerical computation built 15 years later at the University of New Mexico.
The first popular computer algebra systems were muMATH, Reduce, Derive, and Macsyma; a popular copyleft version of Macsyma called Maxima is actively being maintained. Reduce became free software in 2008. As of today, the most popular commercial systems are Mathematica and Maple, which are commonly used by research mathematicians, scientists, and engineers. Freely available alternatives include SageMath.
In 1987, Hewlett-Packard introduced the first hand-held calculator CAS with the HP-28 series, and it was possible, for the first time in a calculator, to arrange algebraic expressions, differentiation, limited symbolic integration, Taylor series construction and a solver for algebraic equations. In 1999, the independently developed CAS Erable for the HP 48 series became an officially integrated part of the firmware of the emerging HP 49/50 series, and a year later into the HP 40 series as well, whereas the HP Prime adopted the Xcas system in 2013.
The Texas Instruments company in 1995 released the TI-92 calculator with a CAS based on the software Derive; the TI-Nspire series replaced Derive in 2007. The TI-89 series, first released in 1998, also contains a CAS.
Casio released their first CAS calculator with the CFX-9970G and succeeded it with the Algebra FX Series in 1999-2003 and the current ClassPad Series.
Symbolic manipulations
The symbolic manipulations supported typically include:- simplification to a smaller expression or some standard form, including automatic simplification with assumptions and simplification with constraints
- substitution of symbols or numeric values for certain expressions
- change of form of expressions: expanding products and powers, partial and full factorization, rewriting as partial fractions, constraint satisfaction, rewriting trigonometric functions as exponentials, transforming logic expressions, etc.
- partial and total differentiation
- some indefinite and definite integration, including multidimensional integrals
- symbolic constrained and unconstrained global optimization
- solution of linear and some non-linear equations over various domains
- solution of some differential and difference equations
- taking some limits
- integral transforms
- series operations such as expansion, summation and products
- matrix operations including products, inverses, etc.
- statistical computation
- theorem proving and verification which is very useful in the area of experimental mathematics
- optimized code generation
Additional capabilities
Many also include:- a programming language, allowing users to implement their own algorithms
- arbitrary-precision numeric operations
- exact integer arithmetic and number theory functionality
- Editing of mathematical expressions in two-dimensional form
- plotting graphs and parametric plots of functions in two and three dimensions, and animating them
- drawing charts and diagrams
- APIs for linking it on an external program such as a database, or using in a programming language to use the computer algebra system
- string manipulation such as matching and searching
- add-ons for use in applied mathematics such as physics, bioinformatics, computational chemistry and packages for physical computation
- graphic production and editing such as computer-generated imagery and signal processing as image processing
- sound synthesis
Types of expressions
The expressions manipulated by the CAS typically include polynomials in multiple variables; standard functions of expressions ; various special functions ; arbitrary functions of expressions; optimization; derivatives, integrals, simplifications, sums, and products of expressions; truncated series with expressions as coefficients, matrices of expressions, and so on. Numeric domains supported typically include floating-point representation of real numbers, integers, complex, interval representation of reals, rational number and algebraic numbers.Use in education
There have been many advocates for increasing the use of computer algebra systems in primary and secondary-school classrooms. The primary reason for such advocacy is that computer algebra systems represent real-world math more than do paper-and-pencil or hand calculator based mathematics.This push for increasing computer usage in mathematics classrooms has been supported by some boards of education. It has even been mandated in the curriculum of some regions.
Computer algebra systems have been extensively used in higher education. Many universities offer either specific courses on developing their use, or they implicitly expect students to use them for their course work. The companies that develop computer algebra systems have pushed to increase their prevalence among university and college programs.
CAS-equipped calculators are not permitted on the ACT, the PLAN, and in some classrooms though it may be permitted on all of College Board's calculator-permitted tests, including the SAT, some SAT Subject Tests and the AP Calculus, Chemistry, Physics, and Statistics exams.
Mathematics used in computer algebra systems
- Knuth–Bendix completion algorithm
- Root-finding algorithms
- Symbolic integration via e.g. Risch algorithm or Risch–Norman algorithm
- Hypergeometric summation via e.g. Gosper's algorithm
- Limit computation via e.g. Gruntz's algorithm
- Polynomial factorization via e.g., over finite fields, Berlekamp's algorithm or Cantor–Zassenhaus algorithm.
- Greatest common divisor via e.g. Euclidean algorithm
- Gaussian elimination
- Gröbner basis via e.g. Buchberger's algorithm; generalization of Euclidean algorithm and Gaussian elimination
- Padé approximant
- Schwartz–Zippel lemma and testing polynomial identities
- Chinese remainder theorem
- Diophantine equations
- Quantifier elimination over real numbers via e.g. Tarski's method/Cylindrical algebraic decomposition
- Landau's algorithm
- Derivatives of elementary functions and special functions.
- Cylindrical algebraic decomposition