Top
Back: nameof
Forward: ncols
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.84 names

Syntax:
names ( )
names ( ring_name )
names ( package_name )
Type:
list of strings
Purpose:
returns the names of all user-defined variables which are ring independent (this includes the names of procedures) or, in the second case, which belong to the given ring.

package_name can be Current, Top or any other identifier of type package.

Example:
 
  int i=9;
  ring r;
  poly f;
  package p;
  int p::j;
  ring p::q;
  poly g;
  setring r;
  names();
==> [1]:
==>    q
==> [2]:
==>    p
==> [3]:
==>    r
==> [4]:
==>    i
==> [5]:
==>    weightKB
==> [6]:
==>    fprintf
==> [7]:
==>    printf
==> [8]:
==>    sprintf
==> [9]:
==>    quotient4
==> [10]:
==>    quotient5
==> [11]:
==>    quotient3
==> [12]:
==>    quotient2
==> [13]:
==>    quotient1
==> [14]:
==>    quot
==> [15]:
==>    res
==> [16]:
==>    groebner
==> [17]:
==>    stdhilb
==> [18]:
==>    stdfglm
==> [19]:
==>    Standard
==> [20]:
==>    Top
  names(r);
==> [1]:
==>    f
  names(p);
==> [1]:
==>    j
  names(p::q);
==>    ? `q` is not defined
==>    ? error occurred in line 12: `  names(p::q);`
See nameof; reservedName.

Top Back: nameof Forward: ncols 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 3-0-1, October 2005, generated by texi2html.