Theoretica
A C++ numerical and automatic mathematical library
polynomial.h File Reference

Polynomial interpolation of real functions. More...

#include <vector>
#include "../core/real_analysis.h"
#include "../polynomial/polynomial.h"
#include "../algebra/algebra_types.h"
#include "../core/function.h"

Go to the source code of this file.

Namespaces

 theoretica
 Main namespace of the library which contains all functions and objects.
 

Functions

template<typename T = real>
polynomial< T > theoretica::lagrange_polynomial (const std::vector< vec< T, 2 >> &points)
 Compute the Lagrange polynomial interpolating a set of points. More...
 
template<typename VectorType = std::vector<real>>
VectorType theoretica::chebyshev_nodes (real a, real b, unsigned int n)
 Compute the n Chebyshev nodes on a given interval. More...
 
polynomial< real > theoretica::interpolate_grid (real_function f, real a, real b, unsigned int order)
 Compute the interpolating polynomial of a real function on an equidistant point sample. More...
 
polynomial< real > theoretica::interpolate_chebyshev (real_function f, real a, real b, unsigned int order)
 Compute the interpolating polynomial of a real function using Chebyshev nodes as sampling points. More...
 

Detailed Description

Polynomial interpolation of real functions.