{ } Raw JSON

bundles / numpy 2.4.4 / numpy / polynomial / polyutils / trimseq

function

numpy.polynomial.polyutils:trimseq

source: /numpy/polynomial/polyutils.py :34

Signature

def   trimseq ( seq )

Summary

Remove small Poly series coefficients.

Parameters

seq : sequence

Sequence of Poly series coefficients.

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.

Notes

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

Aliases

  • numpy.polynomial.polyutils.trimseq