flegendre¶
- pydl.goddard.math.flegendre(x, m)[source]¶
Compute the first
m
Legendre polynomials.- Parameters
- xarray-like
Compute the Legendre polynomials at these abscissa values.
- m
int
The number of Legendre polynomials to compute. For example, if \(m = 3\), \(P_0 (x)\), \(P_1 (x)\) and \(P_2 (x)\) will be computed.
- Returns
numpy.ndarray
The values of the Legendre functions.