This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / chebyshev / _zseries_div

function

numpy.polynomial.chebyshev:_zseries_div

source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/chebyshev.py :208

Signature

def   _zseries_div ( z1 z2 )

Summary

Divide the first z-series by the second.

Extended Summary

Divide z1 by z2 and return the quotient and remainder as z-series. Warning: this implementation only applies when both z1 and z2 have the same symmetry, which is sufficient for present purposes.

Parameters

z1, z2 : 1-D ndarray

The arrays must be 1-D and have the same symmetry, but this is not checked.

Returns

(quotient, remainder) : 1-D ndarrays

Quotient and remainder as z-series.

Notes

This is not the same as polynomial division on account of the desired form of the remainder. If symmetric/anti-symmetric z-series are denoted by S/A then the following rules apply:

S/S -> S,S A/A -> S,A

The restriction to types of the same symmetry could be fixed but seems like unneeded generality. There is no natural form for the remainder in the case where there is no symmetry.

Aliases

  • numpy.polynomial.chebyshev._zseries_div