CPolynomial:Count
The Count method returns the number of coefficients in the CPolynomial object. This is not the related to the order of the highest coefficient. For example, if the CPolynomial contains only 1 coefficient of order 10, then Count = 1.
number = CPolynomial:Count() |
Suppose a CPolynomial assigned to P contains 4 coefficients with the highest order set being 5:
|
-- create a CPolynomial |
|
-- set coef[0] |
|
-- set coef[1] |
|
-- set coef[6] |
|
-- result: Count = 3 |