Raise a Laguerre series to a power. Returns the Laguerre 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 arr
(c, pow, maxpower=16)
| 552 | |
| 553 | |
| 554 | def lagpow(c, pow, maxpower=16): |
| 555 | """Raise a Laguerre series to a power. |
| 556 | |
| 557 | Returns the Laguerre series `c` raised to the power `pow`. The |
| 558 | argument `c` is a sequence of coefficients ordered from low to high. |
| 559 | i.e., [1,2,3] is the series ``P_0 + 2*P_1 + 3*P_2.`` |
| 560 | |
| 561 | Parameters |
| 562 | ---------- |
| 563 | c : array_like |
| 564 | 1-D array of Laguerre series coefficients ordered from low to |
| 565 | high. |
| 566 | pow : integer |
| 567 | Power to which the series will be raised |
| 568 | maxpower : integer, optional |
| 569 | Maximum power allowed. This is mainly to limit growth of the series |
| 570 | to unmanageable size. Default is 16 |
| 571 | |
| 572 | Returns |
| 573 | ------- |
| 574 | coef : ndarray |
| 575 | Laguerre series of power. |
| 576 | |
| 577 | See Also |
| 578 | -------- |
| 579 | lagadd, lagsub, lagmulx, lagmul, lagdiv |
| 580 | |
| 581 | Examples |
| 582 | -------- |
| 583 | >>> from numpy.polynomial.laguerre import lagpow |
| 584 | >>> lagpow([1, 2, 3], 2) |
| 585 | array([ 14., -16., 56., -72., 54.]) |
| 586 | |
| 587 | """ |
| 588 | return pu._pow(lagmul, c, pow, maxpower) |
| 589 | |
| 590 | |
| 591 | def lagder(c, m=1, scl=1, axis=0): |