Functions
LagrangePolynomial.hpp File Reference

Defines functions lagrange_polynomial. More...

#include <iterator>
#include "ErrorHandling/Assert.hpp"

Go to the source code of this file.

Functions

template<typename Iterator >
double lagrange_polynomial (const Iterator &index_point, double x, const Iterator &control_points_begin, const Iterator &control_points_end)
 Evaluate the jth Lagrange interpolating polynomial with the given control points where j is the index of index_point.
 
template<typename Iterator >
double lagrange_polynomial (size_t j, double x, const Iterator &control_points_begin, const Iterator &control_points_end)
 Evaluate the jth (zero-indexed) Lagrange interpolating polynomial with the given control points.
 

Detailed Description

Defines functions lagrange_polynomial.