cupy.polynomial.polyutils.trimcoef#
- cupy.polynomial.polyutils.trimcoef(c, tol=0)[source]#
Removes small trailing coefficients from a polynomial.
- Parameters:
c (cupy.ndarray) – 1d array of coefficients from lowest to highest order.
tol (number, optional) – trailing coefficients whose absolute value are less than or equal to
tol
are trimmed.
- Returns:
trimmed 1d array.
- Return type: