Top
Back: var
Forward: varstr
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.141 variables

Syntax:
variables ( poly_expression )
variables ( ideal_expression )
variables ( matrix_expression )
Type:
list
Purpose:
var(p) returns the list of all ring variables the arguments depends on.
Example:
 
  ring r=0,(x,y,z),dp;
  variables(2);
==> empty list
  variables(x+y2);
==> [1]:
==>    x
==> [2]:
==>    y
  variables(ideal(x+y2,x3y,z));
==> [1]:
==>    x
==> [2]:
==>    y
==> [3]:
==>    z
  string(variables(ideal(x+y2,x3y,z)));
==> x,y,z
See leadexp; nvars; univariate; var; varstr.

Top Back: var Forward: varstr 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-4, Nov 2007, generated by texi2html.