This AdaptableUnaryFunction computes the degree of a PolynomialTraits_d::Polynomial_d with respect to a certain variable.
The degree of p with respect to a certain variable x_{i},
is the highest power e of x_{i} such that the coefficient of x_{i}^{e} in
p is not zero.
For instance the degree of p = x_{0}^{2}x_{1}^{3}+x_{1}^{4} with respect to x_{1} is 4.
The degree of the zero polynomial is set to 0. From the mathematical point of view this should be infinity, but this would imply an inconvenient return type.



 


 Computes the degree of p with respect to the outermost variable x_{d1}.  


Computes the degree of p with respect to variable x_{i}.

Polynomial_d
PolynomialTraits_d
PolynomialTraits_d::TotalDegree
PolynomialTraits_d::DegreeVector