numpy.polynomial.polynomial.polymulx — NumPy v2.2 Manual (original) (raw)

polynomial.polynomial.polymulx(c)[source]#

Multiply a polynomial by x.

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

Parameters:

carray_like

1-D array of polynomial coefficients ordered from low to high.

Returns:

outndarray

Array representing the result of the multiplication.

See also

polyadd, polysub, polymul, polydiv, polypow

Examples

from numpy.polynomial import polynomial as P c = (1, 2, 3) P.polymulx(c) array([0., 1., 2., 3.])