Top
Back: variables
Forward: vdim
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.158 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: variables Forward: vdim FastBack: Functions and system variables FastForward: Control structures Up: Functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.