CPolynomial:MaxOrder
The MaxOrder method returns the order of the maximum order coefficient that has been initialized.
order = CPolynomial:MaxOrder() |
On success, this method returns order as an integer number.
On failure, this method returns 0.
Suppose that the CPolynomial P contains 3 coefficients with the highest order being 5. This script 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 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.