CPolynomial:Get
The Get method returns the coefficient value at a specified index, beginning at index 0.
value = CPolynomial:Get( n ) |
n is the index of the coefficient to retrieve.
value is the numeric value of the coefficient.
On success, the coefficient value is returned.
On failure, 0 is returned.
If the value n is not a valid index, for example, n < 0, this method returns 0.
Suppose a CPolynomial assigned to P contains 4 coefficients. This following script returns the value of coefficient 1:
|
-- create a CPolynomial |
|
-- set coef[0] |
|
-- set coef[1] |
|
-- set coef[6] |
|
-- result: v = 0.144 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.