Top
Back: ringlist
Forward: setring
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.126 rvar

Syntax:
rvar ( name )
rvar ( poly_expression )
rvar ( string_expression )
Type:
int
Purpose:
returns the number of the variable if the name/polynomial is a ring variable of the basering or if the string is the name of a ring variable of the basering; returns 0 if not. Hence the return value of rvar can also be used in a boolean context to check whether the variable exists.
Example:
 
See defined; ring; var; varstr.

Top Back: ringlist Forward: setring 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-1-6, Dec 2012, generated by texi2html.