numpy.polynomial.hermite_e.hermeder

numpy.polynomial.hermite_e.hermeder(cs, m=1, scl=1)

Differentiate a Hermite series.

Returns the series cs differentiated m times. At each iteration the result is multiplied by scl (the scaling factor is for use in a linear change of variable). The argument cs is the sequence of coefficients from lowest order “term” to highest, e.g., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2.

Parameters :

cs: array_like :

1-d array of Hermite series coefficients ordered from low to high.

m : int, optional

Number of derivatives taken, must be non-negative. (Default: 1)

scl : scalar, optional

Each differentiation is multiplied by scl. The end result is multiplication by scl**m. This is for use in a linear change of variable. (Default: 1)

Returns :

der : ndarray

Hermite series of the derivative.

See also

hermeint

Notes

In general, the result of differentiating a Hermite series does not resemble the same operation on a power series. Thus the result of this function may be “un-intuitive,” albeit correct; see Examples section below.

Examples

>>> from numpy.polynomial.hermite_e import hermeder
>>> hermeder([ 1.,  1.,  1.,  1.])
array([ 1.,  2.,  3.])
>>> hermeder([-0.25,  1.,  1./2.,  1./3.,  1./4 ], m=2)
array([ 1.,  2.,  3.])

Next topic

numpy.polynomial.hermite_e.hermeint

This Page