Top
Back: 3.2.6 Top 20 Emacs commands
Forward: 3.3.1 Examples of ring declarations
FastBack: 3. General concepts
FastForward: 4. Data types
Up: 3. General concepts
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

3.3 Rings and orderings

All non-trivial algorithms in SINGULAR require the prior definition of a ring. Such a ring can be

  1. a polynomial ring over a field,
  2. a localization of a polynomial ring,
  3. a quotient ring by an ideal of one of 1. or 2.,
  4. a tensor product of one of 1. or 2.

Except for quotient rings, all of these rings are realized by choosing a coefficient field, ring variables, and an appropriate global or local monomial ordering on the ring variables. See Term orderings, Mathematical background.

The coefficient field of the rings may be

  1. the field of rational numbers $Q$ ,
  2. finite fields $Z/p$, $p$ a prime $\le 2147483629$,
  3. finite fields $\hbox{GF}(p^n)$ with $p^n$ elements, $p$ a prime, $p^n \le 2^{15}$,
  4. transcendental extension of $Q$ or $Z/p$ ,
  5. simple algebraic extension of $Q$ or $Z/p$ ,
  6. the field of real numbers represented by floating point numbers of a user defined precision.
  7. the field of complex numbers represented by (pairs of) floating point numbers of a user defined precision.

Throughout this manual, the current active ring in SINGULAR is called basering. The reserved name basering in SINGULAR is an alias for the current active ring. The basering can be set by declaring a new ring as described in the following subsections or with the commands setring and keepring. See keepring, setring.

Objects of ring dependent types are local to a ring. To access them after a change of the basering they have to be mapped using map or by the functions imap or fetch. See Objects, fetch, imap, map.

All changes of the basering in a procedure are local to this procedure unless a keepring command is used as the last statement of the procedure. See Procedures, keepring.


Top Back: 3.2.6 Top 20 Emacs commands Forward: 3.3.1 Examples of ring declarations FastBack: 3. General concepts FastForward: 4. Data types Up: 3. General concepts Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.