Theoretica
A C++ numerical and automatic mathematical library
Loading...
Searching...
No Matches
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

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

Functions

template<typename T = real>
polynomial< Ttheoretica::lagrange_polynomial (const std::vector< vec< T, 2 > > &points)
 Compute the Lagrange polynomial interpolating a set of points.
 
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.
 
polynomial< realtheoretica::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.
 
polynomial< realtheoretica::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.
 

Detailed Description

Polynomial interpolation of real functions.