CPolynomial:Remove
The Remove method removes the coefficient at index n.
value = CPolynomial:Remove( n ) |
n is the coefficient order to remove.
On success, the numeric value of the removed coefficient is returned.
On failure, 0 is returned.
The following script removes the value at index 3:
|
-- create a CPolynomial object |
|
-- set coef[0] |
|
-- set coef[3] |
|
-- result: N = 2 |
|
-- remove coef[3] |
|
-- result: N = 1, x=-0.0045 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.