CPolynomial:Get
The Get method returns the coefficient value at a specified index, beginning at index 0.
value = CPolynomial:Get( n ) |
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 fragment returns the value of coefficient 1:
|
-- create a CPolynomial |
|
-- set coef[0] |
|
-- set coef[1] |
|
-- set coef[6] |
|
-- result: v = 0.144 |