# chebknots: Create a Chebyshev-grid In chebpol: Multivariate Interpolation

## Description

Create a Chebyshev grid on a hypercube.

## Usage

 `1` ```chebknots(dims, intervals = NULL) ```

## Arguments

 `dims` The number of grid-points in each dimension. For Chebyshev-polynomial of degree `dims-1`. `intervals` A list of vectors of length 2. The lower and upper bounds of the hypercube.

## Details

If `intervals` is not provided, it is assumed that the domain of the function in each dimension is [-1,1]. Thus, standard Chebyshev knots are produced. If `dims` is of length 1, `intervals` may be a vector of length 2 rather than a list with a vector of length 2.

## Value

A array of dimension `dims`. The Chebyshev grid-points.

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11``` ```## Standard knots for degree 3 chebknots(4) ## Knots in the interval [2,3] for degree 3 chebknots(4,interval=c(2,3)) ## Multivariate knots chebknots(c(x=3,y=4,z=3)) ## Multivariate grid ## Not run: expand.grid(chebknots(c(x=3,y=4,z=5), list(c(1,3), c(4,6), c(800,900)))) ## End(Not run) ```

chebpol documentation built on Dec. 9, 2019, 5:08 p.m.