This is documentation for an old release of SciPy (version 0.19.0). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.special.gegenbauer¶
- scipy.special.gegenbauer(n, alpha, monic=False)[source]¶
Gegenbauer (ultraspherical) polynomial.
Defined to be the solution of
(1−x2)d2dx2C(α)n−(2α+1)xddxC(α)n+n(n+2α)C(α)n=0for α>−1/2; C(α)n is a polynomial of degree n.
Parameters: n : int
Degree of the polynomial.
monic : bool, optional
If True, scale the leading coefficient to be 1. Default is False.
Returns: C : orthopoly1d
Gegenbauer polynomial.
Notes
The polynomials C(α)n are orthogonal over [−1,1] with weight function (1−x2)(α−1/2).