chebbasisgen {capn} | R Documentation |
Generating Unidimensional Chebyshev polynomial (monomial) basis
Description
The function calculates the monomial basis of Chebyshev polynomials for the given unidimensional nodes,
, over a bounded interval [a,b].
Usage
chebbasisgen(stock, npol, a, b, dorder = NULL)
Arguments
stock |
An array of Chebyshev polynomial nodes |
npol |
Number of polynomials (n polynomials = (n-1)-th degree) |
a |
The lower bound of inverval [a,b] |
b |
The upper bound of inverval [a,b] |
dorder |
Degree of partial derivative of the basis; Default is NULL; if dorder = 1, returns the first order partial derivative |
Details
Suppose there are numbers of Chebyshev nodes over a bounded interval [a,b]:
for
.
These nodes can be nomralized to the standard Chebyshev nodes over the domain [-1,1]:
.
With normalized Chebyshev nodes, the recurrence relations of Chebyshev polynomials of order is defined as:
,
, and
.
The interpolation matrix (Vandermonde matrix) of (n-1)-th Chebyshev polynomials with nodes,
is:
.
The partial derivative of the monomial basis matrix can be found by the relation:
.
The technical details of the monomial basis of Chebyshev polynomial can be referred from Amparo et al. (2007)
and Miranda and Fackler (2012).
Value
A matrix (number of nodes () x npol (
)) of (monomial) Chebyshev polynomial basis
References
Amparo, Gil, Javier Segura, and Nico Temme. (2007) Numerical Methods for Special Functions. Cambridge: Cambridge University Press.
Miranda, Mario J. and Paul L. Fackler. (2002) Applied Computational Economics and Finance. Cambridge: The MIT Press.
See Also
Examples
## Reef-fish example: see Fenichel and Abbott (2014)
data("GOM")
nodes <- chebnodegen(param$nodes,param$lowerK,param$upperK)
## An example of Chebyshev polynomial basis
chebbasisgen(nodes,20,0.1,1.5)
## The partial derivative of Chebyshev polynomial basis with the same function
chebbasisgen(nodes,20,0.1,1.5,1)