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. If F is constant, the function throws an error.

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

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

See Also