shamrock.external.coala.utils_polynomials.legendre_coeffs#
- shamrock.external.coala.utils_polynomials.legendre_coeffs(kpol)#
Returns a matrix (kpol+1,kpol+1) containing on each line the coefficients for each Legendre polynomial, from degree 0 to kpol inclusive. On each line coefficients are ordered from low to high orders.
Parameters#
- kpolscalar, type -> float
degree of polynomials for approximation
Returns#
- mat_coeffs_leg2D array (dmin = (kpol+1,kpol+1)), type -> float
array containing the coefficients for Legendre polynomials up to degree kpol