Singular Manual: listvar

  | ### 5.1.82 listvar `Syntax:` `listvar (` [package] `)` `listvar (` [package`,`] type `)` `listvar (` [package`,`] ring_name `)` `listvar (` [package`,`] name `)` `listvar (` [package`,`] `all )` `Type:` none `Purpose:` lists all (user-)defined names: `listvar()`: all currently visible names except procedures in the current namespace, `listvar(`type`)`: all currently visible names of the given type, `listvar(`ring_name`)`: all names which belong to the given ring, `listvar(`name`)`: the object with the given name, `listvar(all)`: all names except procedures in the current and `Top` namespace. The current basering is marked with a `*`. The nesting level of variables in procedures is shown in square brackets. package can be `Current`, `Top` or any other identifier of type package. `Example:`
        proc t1 { }
        proc t2 { }
        ring s;
        poly ss;
        ring r;
        poly f=x+y+z;
        int i=7;
        ideal I=f,x,y;
        listvar();
      ==> // i                              [0]  int 7
      ==> // r                              [0]  *ring
      ==> //      I                              [0]  ideal, 3 generator(s)
      ==> //      f                              [0]  poly
      ==> // s                              [0]  ring
        listvar(r);
      ==> // r                              [0]  *ring
      ==> // I                              [0]  ideal, 3 generator(s)
      ==> // f                              [0]  poly
        listvar(t1);
      ==> // t1                             [0]  proc
        listvar(proc);
      ==> // t2                             [0]  proc
      ==> // t1                             [0]  proc
      ==> // create_ring                    [0]  proc from standard.lib
      ==> // min                            [0]  proc from standard.lib
      ==> // max                            [0]  proc from standard.lib
      ==> // datetime                       [0]  proc from standard.lib
      ==> // weightKB                       [0]  proc from standard.lib
      ==> // fprintf                        [0]  proc from standard.lib
      ==> // printf                         [0]  proc from standard.lib
      ==> // sprintf                        [0]  proc from standard.lib
      ==> // quotient4                      [0]  proc from standard.lib
      ==> // quotient5                      [0]  proc from standard.lib
      ==> // quotient3                      [0]  proc from standard.lib
      ==> // quotient2                      [0]  proc from standard.lib
      ==> // quotient1                      [0]  proc from standard.lib
      ==> // quot                           [0]  proc from standard.lib
      ==> // res                            [0]  proc from standard.lib
      ==> // groebner                       [0]  proc from standard.lib
      ==> // qslimgb                        [0]  proc from standard.lib
      ==> // hilbRing                       [0]  proc from standard.lib
      ==> // par2varRing                    [0]  proc from standard.lib
      ==> // quotientList                   [0]  proc from standard.lib
      ==> // stdhilb                        [0]  proc from standard.lib
      ==> // stdfglm                        [0]  proc from standard.lib
      ==> // Float                          [0]  proc from kernel (C)
      ==> // crossprod                      [0]  proc from kernel (C)
        LIB "polylib.lib";
        listvar(Poly);
      ==>    ? Poly is undefined
      ==>    ? error occurred in or before ./examples/listvar.sing line 14: `  list\
         var(Poly);`
See Names; Names in procedures; defined; names; package; type.

User manual for Singular version 4.3.2, 2023, generated by texi2html.