Home Online Manual
Top
Back: typeof
Forward: uressolve
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.157 univariate

Syntax:
univariate ( poly_expression )
Type:
int
Purpose:
returns 0 for not univariate, -1 for a constant or the number of the variable of the univariate polynomial.

Example:
 
  ring r=0,(x,y,z),dp;
  univariate(x2+1);
==> 1
  univariate(x2+y+1);
==> 0
  univariate(1);
==> -1
  univariate(var(2));
==> 2
  var(univariate(z));
==> z
See leadexp; var.