numpy.polynomial.polyutils.trimseq(seq)
[source]
Remove small Poly series coefficients.
Parameters: |
seq : sequence Sequence of Poly series coefficients. This routine fails for empty sequences. |
---|---|
Returns: |
series : sequence 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. |
Do not lose the type info if the sequence contains unknown objects.
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.14.2/reference/generated/numpy.polynomial.polyutils.trimseq.html