LegPoly | R Documentation |
Function to calculate the Legendre Polynomial, based on the recurrence relation in Numerical Recipes in C (Eq. 4.6.10) with j = j-1 Therefore: P_j = (2j-1) * P_(j-1) - (j-1) * P_(j-2) P_0 = 1; P_1 = x
LegPoly(degree, coeffs)
degree |
The degree of the desired polynomial |
coeffs |
the values at which the p[olynomial will be evaluated |
Legendre polynomials
coeffs=2;degree=3 LegPoly(degree,coeffs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.