Fermat (computer algebra system)

From HandWiki - Reading time: 3 min

Short description: Computer algebra system
Fermat
Developer(s)Robert H. Lewis
Stable release
6.5 / 25 June 2021; 3 years ago (2021-06-25)
Written inC
Operating systemmacOS, Classic Mac OS, Linux, Unix, Windows
TypeComputer algebra system
LicenseFreeware, GPL since 4 August 2018
Websitehome.bway.net/lewis/

Fermat (named after Pierre de Fermat) is a program developed by Prof. Robert H. Lewis of Fordham University. It is a computer algebra system, in which items being computed can be integers (of arbitrary size), rational numbers, real numbers, complex numbers, modular numbers, finite field elements, multivariable polynomials, rational functions, or polynomials modulo other polynomials. The main areas of application are multivariate rational function arithmetic and matrix algebra over rings of multivariate polynomials or rational functions. Fermat does not do simplification of transcendental functions or symbolic integration.

A session with Fermat usually starts by choosing rational or modular "mode" to establish the ground field (or ground ring) [math]\displaystyle{ F }[/math] as [math]\displaystyle{ \mathbb{Z} }[/math] or [math]\displaystyle{ \mathbb{Z}/n }[/math]. On top of this may be attached any number of symbolic variables [math]\displaystyle{ t_1, t_2, \dots, t_n, }[/math] thereby creating the polynomial ring [math]\displaystyle{ F[t_1, t_2, \dots, t_n] }[/math] and its quotient field. Further, some polynomials [math]\displaystyle{ p, q, \dots }[/math] involving some of the [math]\displaystyle{ t_i }[/math] can be chosen to mod out with, creating the quotient ring [math]\displaystyle{ F(t_1, t_2, \dots)/(p, q, \dots). }[/math] Finally, it is possible to allow Laurent polynomials, 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 normal 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 [math]\displaystyle{ p(t_1), }[/math] and commands Fermat to mod out by it. This may be continued recursively, [math]\displaystyle{ q(t_2, t_1), }[/math] etc. Low level data structures are set up to facilitate arithmetic and gcd over this newly created ground field. Two special fields, [math]\displaystyle{ GF(2^{8}) }[/math] and [math]\displaystyle{ GF(2^{16}), }[/math] are more efficiently implemented at the bit level.

History

With Windows 10, and thanks to Bogdan Radu, it is now possible (May 2021) to run Fermat Linux natively on Windows. See the main web page http://home.bway.net/lewis

Fermat was last updated on 20 May 2020 (Mac and Linux; latest Windows version: 1 November 2011).

In an earlier version, called FFermat (Float Fermat), 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 9.

Fermat was originally written in Pascal for a DEC VAX, then for the classic Mac OS during 1985–1996. It was ported to Microsoft Windows in 1998. In 2003 it was translated into C and ported to Linux (Intel machines) and Unix (Sparc/Sun). It is about 98,000 lines of C code.

The FFermat and (old) Windows Fermat Pascal source code have been made available to the public under a restrictive license.

The manual was extensively revised and updated on 25 July 2011 (latest small revision in June 2016, apparently another revision on 25 March 2020).

See also

  • Comparison of computer algebra systems

External links




Licensed under CC BY-SA 3.0 | Source: https://handwiki.org/wiki/Software:Fermat_(computer_algebra_system)
17 views | Status: cached on July 15 2024 04:02:31
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF