Jacobi poly
Jump to navigation
Jump to search
jacobi_poly | |
Computes the coefficients of Jacobi polynomials | |
Other toolboxes required | none |
---|---|
Function category | Helper functions |
This is a helper function that only exists to aid other functions in QETLAB. If you are an end-user of QETLAB, you likely will never have a reason to use this function. |
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:
>> jacobi_poly(1,1,3)
ans =
7 0 -3 0
Source code
Click here to view this function's source code on github.