numpy.polynomial.polyutils.trimseq

polynomial.polyutils.trimseq(seq)[source]

Remove small Poly series coefficients.

Parameters:
seqsequence

Sequence of Poly series coefficients.

Returns:
seriessequence

Subsequence with trailing zeros removed. If the resulting sequence would be empty, return the first element. The returned sequence may or may not be a view.

Notes

Do not lose the type info if the sequence contains unknown objects.

© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.0/reference/generated/numpy.polynomial.polyutils.trimseq.html