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

Function hermpow

numpy/polynomial/hermite.py:560–594  ·  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

558
559
560def hermpow(c, pow, maxpower=16):
561 """Raise a Hermite series to a power.
562
563 Returns the Hermite series `c` raised to the power `pow`. The
564 argument `c` is a sequence of coefficients ordered from low to high.
565 i.e., [1,2,3] is the series ``P_0 + 2*P_1 + 3*P_2.``
566
567 Parameters
568 ----------
569 c : array_like
570 1-D array of Hermite series coefficients ordered from low to
571 high.
572 pow : integer
573 Power to which the series will be raised
574 maxpower : integer, optional
575 Maximum power allowed. This is mainly to limit growth of the series
576 to unmanageable size. Default is 16
577
578 Returns
579 -------
580 coef : ndarray
581 Hermite series of power.
582
583 See Also
584 --------
585 hermadd, hermsub, hermmulx, hermmul, hermdiv
586
587 Examples
588 --------
589 >>> from numpy.polynomial.hermite import hermpow
590 >>> hermpow([1, 2, 3], 2)
591 array([81., 52., 82., 12., 9.])
592
593 """
594 return pu._pow(hermmul, c, pow, maxpower)
595
596
597def hermder(c, m=1, scl=1, axis=0):

Callers

nothing calls this directly

Calls 1

_powMethod · 0.80

Tested by

no test coverage detected