| legendre_polynomials | R Documentation |
Functions to compute Legendre polynomials of the first and second kind, their derivatives, zeros, and related functions.
legendre_p(n, x)
legendre_p_prime(n, x)
legendre_p_zeros(n)
legendre_p_m(n, m, x)
legendre_q(n, x)
legendre_next(n, x, Pl, Plm1)
legendre_next_m(n, m, x, Pl, Plm1)
n |
Degree of the polynomial |
x |
Argument of the polynomial |
m |
Order of the polynomial (for Legendre polynomials of the first kind) |
Pl |
Value of the Legendre polynomial |
Plm1 |
Value of the Legendre polynomial |
A single numeric value with the computed Legendre polynomial, its derivative, zeros, or related functions.
Boost Documentation for more details on the mathematical background.
# Legendre polynomial of the first kind P_2(0.5)
legendre_p(2, 0.5)
# Derivative of the Legendre polynomial of the first kind P_2'(0.5)
legendre_p_prime(2, 0.5)
# Zeros of the Legendre polynomial of the first kind P_2
legendre_p_zeros(2)
# Legendre polynomial of the first kind with order 1 P_2^1(0.5)
legendre_p_m(2, 1, 0.5)
# Legendre polynomial of the second kind Q_2(0.5)
legendre_q(2, 0.5)
# Next Legendre polynomial of the first kind P_3(0.5) using P_2(0.5) and P_1(0.5)
legendre_next(2, 0.5, legendre_p(2, 0.5), legendre_p(1, 0.5))
# Next Legendre polynomial of the first kind with order 1 P_3^1(0.5) using P_2^1(0.5) and P_1^1(0.5)
legendre_next_m(2, 1, 0.5, legendre_p_m(2, 1, 0.5), legendre_p_m(1, 1, 0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.