shamrock.external.coala.utils_polynomials#

Functions

coeff_norm_leg

Compute the normalisation coefficient of a Legendre polynomial with same order k

dphik

Derivative of P_k(xij) with respect to x, where xij = 2/hj*(x-xj)

legendre_coeffs

Returns a matrix (kpol+1,kpol+1) containing on each line the coefficients for each Legendre polynomial, from degree 0 to kpol inclusive.

phi_pol

Evaluate polynomial sum_{i=0}^{k} a_i x^i by Horner's method

polynomial_derivative_coeffs

Compute coefficients for the derivative of polynomial with coeff pol_coeffs.