MCPcopy Create free account
hub / github.com/numpy/numpy / hermepow

Function hermepow

numpy/polynomial/hermite_e.py:553–587  ·  view source on GitHub ↗

Raise a Hermite series to a power. Returns the Hermite series `c` raised to the power `pow`. The argument `c` is a sequence of coefficients ordered from low to high. i.e., [1,2,3] is the series ``P_0 + 2*P_1 + 3*P_2.`` Parameters ---------- c : array_like 1-D array

(c, pow, maxpower=16)

Source from the content-addressed store, hash-verified

551
552
553def hermepow(c, pow, maxpower=16):
554 """Raise a Hermite series to a power.
555
556 Returns the Hermite series `c` raised to the power `pow`. The
557 argument `c` is a sequence of coefficients ordered from low to high.
558 i.e., [1,2,3] is the series ``P_0 + 2*P_1 + 3*P_2.``
559
560 Parameters
561 ----------
562 c : array_like
563 1-D array of Hermite series coefficients ordered from low to
564 high.
565 pow : integer
566 Power to which the series will be raised
567 maxpower : integer, optional
568 Maximum power allowed. This is mainly to limit growth of the series
569 to unmanageable size. Default is 16
570
571 Returns
572 -------
573 coef : ndarray
574 Hermite series of power.
575
576 See Also
577 --------
578 hermeadd, hermesub, hermemulx, hermemul, hermediv
579
580 Examples
581 --------
582 >>> from numpy.polynomial.hermite_e import hermepow
583 >>> hermepow([1, 2, 3], 2)
584 array([23., 28., 46., 12., 9.])
585
586 """
587 return pu._pow(hermemul, c, pow, maxpower)
588
589
590def hermeder(c, m=1, scl=1, axis=0):

Callers

nothing calls this directly

Calls 1

_powMethod · 0.80

Tested by

no test coverage detected