Top
Back: 5.1.112 rvar
Forward: 5.1.114 simplex
FastBack: 5. Functions and system variables
FastForward: 6. Tricks and pitfalls
Up: 5.1 Functions
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

5.1.113 setring

Syntax:

setring ring_name

Type:

none

Purpose:

changes the basering to another (already defined) ring.

Example:
 
  ring r1=0,(x,y),lp;
  // the basering is r1
  ring r2=32003,(a(1..8)),ds;
  // the basering is r2
  setring r1;
  // the basering is again r1
  nameof(basering);
→ r1
  listvar();
→ // r2                   [0]  ring
→ // r1                   [0]  *ring
→ // LIB                  [0]  string standard.lib
Use in procedures:

All changes of the basering by a definition of a new ring or a setring command in a procedure are local to this procedure. Use keepring to move a ring, which is local to a procedure, up by one nesting level.

See keepring; qring; ring.


Top Back: 5.1.112 rvar Forward: 5.1.114 simplex FastBack: 5. Functions and system variables FastForward: 6. Tricks and pitfalls Up: 5.1 Functions 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.