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() |
On success, this method returns the number of coefficients.
On failure, this method returns 0.
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 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.