bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / chebyshev / chebder
function
numpy.polynomial.chebyshev:chebder
source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/chebyshev.py :872
Signature
def chebder ( c , m = 1 , scl = 1 , axis = 0 ) Summary
Differentiate a Chebyshev series.
Extended Summary
Returns the Chebyshev series coefficients c differentiated m times along axis. At each iteration the result is multiplied by scl (the scaling factor is for use in a linear change of variable). The argument c is an array of coefficients from low to high degree along each axis, e.g., [1,2,3] represents the series 1*T_0 + 2*T_1 + 3*T_2 while [[1,2],[1,2]] represents 1*T_0(x)*T_0(y) + 1*T_1(x)*T_0(y) + 2*T_0(x)*T_1(y) + 2*T_1(x)*T_1(y) if axis=0 is x and axis=1 is y.
Parameters
c: array_likeArray of Chebyshev series coefficients. If c is multidimensional the different axis correspond to different variables with the degree in each axis given by the corresponding index.
m: int, optionalNumber of derivatives taken, must be non-negative. (Default: 1)
scl: scalar, optionalEach differentiation is multiplied by
scl. The end result is multiplication byscl**m. This is for use in a linear change of variable. (Default: 1)axis: int, optionalAxis over which the derivative is taken. (Default: 0).
Returns
der: ndarrayChebyshev series of the derivative.
Notes
In general, the result of differentiating a C-series needs to be "reprojected" onto the C-series basis set. Thus, typically, the result of this function is "unintuitive," albeit correct; see Examples section below.
Examples
from numpy.polynomial import chebyshev as C c = (1,2,3,4) C.chebder(c) C.chebder(c,3) C.chebder(c,scl=-1)✓
C.chebder(c,2,-1)
✗See also
Aliases
-
numpy.polynomial.Chebyshev._der -
numpy.polynomial.chebyshev.chebder