|
Theoretica
Scientific Computing
|
Polynomial interpolation of real functions. More...
#include <vector>#include "../core/real_analysis.h"#include "../polynomial/polynomial.h"#include "../algebra/algebra.h"#include "../core/function.h"Go to the source code of this file.
Namespaces | |
| namespace | theoretica |
| Main namespace of the library which contains all functions and objects. | |
Functions | |
| template<typename Vector1 , typename Vector2 , enable_vector< Vector1 > = true, enable_vector< Vector2 > = true, typename Type = vector_element_t<Vector2>> | |
| polynomial< Type > | theoretica::lagrange (const Vector1 &x, const Vector2 &y) |
| Compute the Lagrange interpolating polynomial of a set of points. | |
| template<typename Vector = vec<real>> | |
| Vector | theoretica::chebyshev_nodes (real a, real b, unsigned int n) |
| Compute the n Chebyshev nodes on a given interval. | |
| template<typename RealFunction , typename Type = return_type_t<RealFunction>> | |
| polynomial< Type > | theoretica::interpolate_grid (RealFunction f, real a, real b, unsigned int order) |
| Compute the interpolating polynomial of a real function on an equidistant grid. | |
| template<typename RealFunction , typename Type = return_type_t<RealFunction>> | |
| polynomial< Type > | theoretica::interpolate_chebyshev (RealFunction f, real a, real b, unsigned int order) |
| Compute the interpolating polynomial of a real function using Chebyshev nodes as sampling points. | |
| template<typename RealFunction , typename Type = return_type_t<RealFunction>> | |
| polynomial< Type > | theoretica::interpolate (RealFunction f, real a, real b, unsigned int order) |
| Use the best available method to compute the interpolating polynomial of a real function. | |
Polynomial interpolation of real functions.