orthax.orthmul
- orthax.orthmul(c1, c2, rec, mode='full')Source
Multiply one orthogonal series by another.
Returns the product of two series c1 * c2. The arguments are sequences of coefficients, from lowest order “term” to highest, e.g., [1,2,3] represents the series
P_0 + 2*P_1 + 3*P_2.- Parameters:
c1 (array_like) – 1-D arrays of orthogonal series coefficients ordered from low to high.
c2 (array_like) – 1-D arrays of orthogonal series coefficients ordered from low to high.
rec (AbstractRecurrenceRelation) – Recurrence relation for the family of orthogonal polynomials.
mode ({"full", "same"}) – If “full”, output has shape (len(c1) + len(c2) - 1). If “same”, output has shape max(len(c1), len(c2)), possibly truncating high order modes.
- Returns:
out (ndarray) – Of series coefficients representing their product.