orthax.chebyshev.chebmulx

orthax.chebyshev.chebmulx(c, mode='full')Source

Multiply a Chebyshev series by x.

Multiply the polynomial c by x, where x is the independent variable.

Parameters:
  • c (array_like) – 1-D array of Chebyshev series coefficients ordered from low to high.

  • mode ({"full", "same"}) – If “full”, output has shape (len(c) + 1). If “same”, output has shape (len(c)), possibly truncating high order modes.

Returns:

out (ndarray) – Array representing the result of the multiplication.

Examples

>>> from orthax import chebyshev as C
>>> C.chebmulx([1,2,3])
array([1. , 2.5, 1. , 1.5])