CoCoA:UnivariateIndetIndex
From ApCoCoAWiki
UnivariateIndetIndex
the index of the indeterminate of a univariate polynomial
Description
This function returns 0 if the polynomial F is not univariate
otherwise it returns the indeterminate index of F.
NB: If F is a constant, it returns 1.
Example
Use Q[x,y]; UnivariateIndetIndex(3x^4-2x-1); 1 ------------------------------- UnivariateIndetIndex(x-y-1); 0 ------------------------------- UnivariateIndetIndex(3); 1 -------------------------------
Syntax
UnivariateIndetIndex(F: POLY): INT
<type>ring</type> <type>polynomial</type>