| eval_chebyshev_coefficients | R Documentation |
Computes the Chebyshev (first-kind) coefficients that approximate
a univariate function func on the interval [a, b] using the
discrete orthogonality formula at degree + 1 Chebyshev nodes.
This is a direct port of the upstream routine
EvalChebyshevCoefficients() in
core/lib/math/chebyshev.cpp of openfhe-development, and the
returned vector is in exactly the form that
eval_chebyshev() (and the upstream EvalChebyshevSeries)
expect — the zeroth coefficient is not halved.
eval_chebyshev_coefficients(func, a, b, degree)
func |
An R function taking a single numeric argument and returning a numeric scalar. |
a |
Lower bound of the approximation interval. |
b |
Upper bound of the approximation interval. |
degree |
Chebyshev polynomial degree (must be >= 1). |
Numeric vector of length degree + 1.
eval_chebyshev(), eval_chebyshev_function().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.