up previous next
UnivariateIndetIndex

the index of the indeterminate of a univariate polynomial

Syntax
UnivariateIndetIndex(F: RINGELEM): INT

Description
This function returns 0 if the polynomial F is not univariate otherwise it returns the indeterminate index of F.

NOTE: If F is a constant, it returns 1.

Example
/**/  use R ::= QQ[x,y,z];
/**/  UnivariateIndetIndex(3*x^4-2*x-1);
1

/**/  UnivariateIndetIndex(x-y-1);
0

/**/  UnivariateIndetIndex(one(R));
1

See Also