Top
Back: varMat
Forward: arrSwapVar
FastBack:
FastForward:
Up: arr_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.14.1.7 varNum

Procedure from library arr.lib (see arr_lib).

Usage:
varnum(string s);
varnum(ring_variable);

Return:
[int] number of given ring variable, or 0 if it does not appear

Note:
This procedure has the same functionality as varNum from the dmod.lib package, but also accepts polys as input.

Example:
 
LIB "arr.lib";
ring R = 0,(x,y,z),dp;
varNum(y);
==> 2
ring S = 0,(x(1..5),y(1..5)),dp;
varNum("y(3)");
==> 8
See also: arrLastVar; arrSwapVar; varMat; varNum.


Top Back: varMat Forward: arrSwapVar FastBack: FastForward: Up: arr_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.2, 2023, generated by texi2html.