Description Usage Arguments Value See Also Examples
Standard Chebychev approximation of an arbitrary function. **Currently only works for two-dimensional approximation**
1 2 |
fn |
a function f(x_1,..., x_n) or f(x_1, ..., x_n,β)
for β a list of function parameters. If the latter, must be
coded with second argument a list names |
range |
the range of the approximation, given as a list of vectors. Eg
for a 3-dimensional function approximated over [1,2] * [-1,2] * [0,4],
would be |
iOrder |
the vector of orders of the polynomial approximation. Eg. to
approximate using polynomials of order 3 and 5 in the 1st and 2nd
dimensions respectively, would be |
iPts |
the vector of number of points at which the approximation is
computed. Must be at least as large as |
fn.opts |
(optional) options passed to |
fn.vals |
the values of |
grid |
(optional) the grid on which the function is to be approximated. Should be submitted as a list of vectors for the grids in each dimension. |
details |
If |
A function which approximates the input fn over the box defined by
range
. If details=TRUE
, also includes the polynomial
desciption over [-1,1], as well as the approximation errors
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.