numpy.polynomial.polynomial.Polynomial.truncate
method
-
polynomial.polynomial.Polynomial.truncate(size)[source] -
Truncate series to length
size.Reduce the series to length
sizeby discarding the high degree terms. The value ofsizemust be a positive integer. This can be useful in least squares where the coefficients of the high degree terms may be very small.- Parameters
-
-
sizepositive int -
The series is reduced to length
sizeby discarding the high degree terms. The value ofsizemust be a positive integer.
-
- Returns
-
-
new_seriesseries -
New instance of series with truncated coefficients.
-
© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.20/reference/generated/numpy.polynomial.polynomial.Polynomial.truncate.html