Jacobi poly

jacobi_poly is a function that returns a vector containing the coefficients of the specified Jacobi polynomial.

Syntax

 * JP = jacobi_poly(A,B,N)

Argument descriptions

 * A: A real parameter (sometimes called alpha) of the Jacobi polynomials.
 * B: A real parameter (sometimes called beta) of the Jacobi polynomials.
 * N: The degree of the Jacobi polynomial (a non-negative integer).

Examples
The Jacobi polynomials are typically denoted by the notation $$P^{(\alpha,\beta)}_n$$. In the $$\alpha = \beta = 1, n = 3$$ case, we have $$P^{(1,1)}_3(z) = 7z^3 - 3z$$, which we can see via the following code: