- Fermat (computer algebra system)
Infobox Software
name = Fermat
caption =
developer = Robert H. Lewis
latest_release_version = 3.9.7
latest_release_date =May 6 2008
programming language = C
operating_system =Mac OS X ,Mac OS ,Linux ,Unix , Windows
genre =Computer algebra system
license =Shareware
website = http://home.bway.net/lewis/Fermat is a
shareware program developed by Prof. Robert H. Lewis ofFordham University . It is acomputer algebra system , in which items being computed can beinteger s (of arbitrary size),rational numbers ,real numbers ,complex numbers , modular numbers,finite field elements, multivariablepolynomial s,rational functions , or polynomialsmodulo other polynomials. The main areas of application are multivariate rational function arithmetic andmatrix algebra over rings of multivariate polynomials or rational functions. Fermat does not do simplification oftranscendental function s orsymbolic integration .A session with Fermat usually starts by choosing rational or modular "mode" to establish the ground field (or ground ring) as or . On top of this may be attached any number of symbolic variables thereby creating the
polynomial ring and its quotient field. Further, some polynomials involving some of the can be chosen to mod out with, creating thequotient ring Finally, it is possible to allowLaurent polynomial s, those with negative as well as positive exponents. Once the computational ring is established in this way, all computations are of elements of this ring. The computational ring can be changed later in the session.The polynomial gcd procedures, which call each other in a highly recursive manner, are about 7000 lines of code.
Fermat has extensive built-in primitives for array and matrix manipulations, such as submatrix, sparse matrix, determinant, normalize, column reduce, row echelon, Smith form, and matrix inverse. It is consistently faster than some well known computer algebra systems, especially in multivariate polynomial gcd. It is also space efficient.
The basic data item in Fermat is a multivariate rational function or quolynomial. The numerator and denominator are polynomials with no common factor. Polynomials are implemented recursively as general linked lists, unlike some systems that implement polynomials as lists of monomials. To implement (most) finite fields, the user finds an irreducible monic polynomial in a symbolic variable, say and commands Fermat to mod out by it. This may be continued recursively, etc. Low level data structures are set up to facilitate arithmetic and gcd over this newly created ground field. Two special fields, and are more efficiently implemented at the bit level.
To help implement the Dixon
resultant technique, special features have been added to the determinant function. These provide a dramatic increase in the speed of resultant calculations with systems of polynomial equations that exhibitsymmetry .Fermat provides a complete programming language. Programs and data can be saved to an ordinary text file that can be examined as such, read during a later session, or read by some other software system.
History
In an earlier version, called FFermat, the basic number type is
floating point numbers of 18 digits. That version allows for numerical computing techniques, has extensive graphics capabilities, no sophisticated polynomial gcd algorithms, and is available only for Mac OS.Fermat was originally written in Pascal for a DEC Vax, then for
Mac OS during 1985 - 1996. It was ported toMicrosoft Windows in 1998. In 2003 it was translated into C and ported toLinux (Intel machines) andUnix (Sparc/Sun). It is about 90,000 lines of C code.ee also
*
Comparison of computer algebra systems External links
* [http://home.bway.net/lewis/ Fermat homepage]
Wikimedia Foundation. 2010.