CPolynomial:Copy
The Copy method duplicates the polynomial coefficients and returns the new copy.
P = CPolynomial:Copy() |
P is a new CPolynomial containing the same coefficients as the current one.
The following script duplicates the coefficient set P into a new set P2:
|
-- create a CPolynomial |
|
-- set coef[0] |
|
-- set coef[1] |
|
-- set coef[4] |
|
-- creates a duplicate coefficient set named P2 |
|
-- result: N = 3 |
|
-- if finished with P, clean up memory |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.