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

Function lagpow

numpy/polynomial/laguerre.py:554–588  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

552
553
554def 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
591def lagder(c, m=1, scl=1, axis=0):

Callers

nothing calls this directly

Calls 1

_powMethod · 0.80

Tested by

no test coverage detected