bundles / scipy 1.17.1 / scipy / special / _orthogonal / roots_gegenbauer
function
scipy.special._orthogonal:roots_gegenbauer
Signature
def roots_gegenbauer ( n , alpha , mu = False ) Summary
Gauss-Gegenbauer quadrature.
Extended Summary
Compute the sample points and weights for Gauss-Gegenbauer quadrature. The sample points are the roots of the nth degree Gegenbauer polynomial, . These sample points and weights correctly integrate polynomials of degree or less over the interval with weight function . See 22.2.3 in [AS] for more details.
Parameters
n: intquadrature order
alpha: floatalpha must be > -0.5
mu: bool, optionalIf True, return the sum of the weights, optional.
Returns
x: ndarraySample points
w: ndarrayWeights
mu: floatSum of the weights
See also
Aliases
-
scipy.special.cg_roots