Top
Back: 5.1.133 var
Forward: 5.1.135 vdim
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.134 varstr

Syntax:

varstr ( ring_name )
varstr ( int_expression )
varstr ( ring_name, int_expression )

Type:

string

Purpose:

returns the list of the names of the ring variables as a string or the name of the n-th ring variable, where n is given by the int_expression.
If the ring name is omitted, the basering is used, thus varstr(n) is equivalent to varstr(basering,n).

Example:
 
  ring r=0,(x,y,z),dp;
  varstr(r);
→ x,y,z
  varstr(r,1);
→ x
  varstr(2);
→ y

See charstr; int; nvars; ordstr; parstr; ring; var.


Top Back: 5.1.133 var Forward: 5.1.135 vdim 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.