CPolynomial:MaxOrder
The MaxOrder method returns the order of the maximum order coefficient that has been initialized.
order = CPolynomial:MaxOrder() |
Suppose that the CPolynomial P contains 3 coefficients with the highest order being 5. This script fragment returns the maximum order defined:
|
-- create a CPolynomial |
|
-- set coef[0] |
|
-- set coef[1] |
|
-- set coef[5] |
|
-- get the maximum defined order |
|
-- result: MaxOrder = 5 |