Home Online Manual
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.100 names

Syntax:
names ( )
names ( ring_name )
names ( package_name )
names ( level )
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. The third case restricts the variables to the given level.

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;
  poly g;
  setring r;
  list l=names();
  l[1..3];
==> l p r
  names(r);
==> [1]:
==>    g
==> [2]:
==>    f
  names(p);
==> [1]:
==>    j
  names(0);
==> [1]:
==>    l
==> [2]:
==>    p
==> [3]:
==>    r
==> [4]:
==>    i
==> [5]:
==>    mathicgb_prOrder
==> [6]:
==>    mathicgb
==> [7]:
==>    Singmathic
==> [8]:
==>    min
==> [9]:
==>    max
==> [10]:
==>    datetime
==> [11]:
==>    weightKB
==> [12]:
==>    fprintf
==> [13]:
==>    printf
==> [14]:
==>    sprintf
==> [15]:
==>    quotient4
==> [16]:
==>    quotient5
==> [17]:
==>    quotient3
==> [18]:
==>    quotient2
==> [19]:
==>    quotient1
==> [20]:
==>    quot
==> [21]:
==>    res
==> [22]:
==>    groebner
==> [23]:
==>    qslimgb
==> [24]:
==>    hilbRing
==> [25]:
==>    par2varRing
==> [26]:
==>    quotientList
==> [27]:
==>    stdhilb
==> [28]:
==>    stdfglm
==> [29]:
==>    Standard
==> [30]:
==>    flintZn
==> [31]:
==>    flintQ
==> [32]:
==>    Float
==> [33]:
==>    crossprod
==> [34]:
==>    ZZ
==> [35]:
==>    QQ
==> [36]:
==>    Top
See nameof; reservedName.