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)
| 558 | |
| 559 | |
| 560 | def 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 | |
| 597 | def hermder(c, m=1, scl=1, axis=0): |