orthax.orthpow

orthax.orthpow(c, pow, rec, maxpower=16)Source

Raise an orthogonal series to a power.

Returns the orthogonal 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 of orthogonal series coefficients ordered from low to high.

  • pow (integer) – Power to which the series will be raised

  • rec (AbstractRecurrenceRelation) – Recurrence relation for the family of orthogonal polynomials.

  • maxpower (integer, optional) – Maximum power allowed. This is mainly to limit growth of the series to unmanageable size. Default is 16

Returns:

coef (ndarray) – Orthogonal series of power.

See also

orthadd, orthsub, orthmulx, orthmul, orthdiv