bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / _polybase / ABCPolyBase / cutdeg
function
numpy.polynomial._polybase:ABCPolyBase.cutdeg
source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/_polybase.py :704
Signature
def cutdeg ( self , deg ) Summary
Truncate series to the given degree.
Extended Summary
Reduce the degree of the series to deg by discarding the high order terms. If deg is greater than the current degree a copy of the current series is returned. This can be useful in least squares where the coefficients of the high degree terms may be very small.
Parameters
deg: non-negative intThe series is reduced to degree
degby discarding the high order terms. The value ofdegmust be a non-negative integer.
Returns
new_series: seriesNew instance of series with reduced degree.
Aliases
-
numpy.polynomial._polybase.ABCPolyBase.cutdeg