Discontinuous Galerkin Library
#include "dg/algorithm.h"

\( f(x) = y_1\frac{x-x_0}{x_1-x_0} + y_0\frac{x-x_1}{x_0-x_1}\) More...

Public Member Functions

 Line (double x0, double y0, double x1, double y1)
 
double operator() (double x)
 

Detailed Description

\( f(x) = y_1\frac{x-x_0}{x_1-x_0} + y_0\frac{x-x_1}{x_0-x_1}\)

The linear interpolation polynomial

Constructor & Destructor Documentation

◆ Line()

dg::Line::Line ( double  x0,
double  y0,
double  x1,
double  y1 
)
inline

Member Function Documentation

◆ operator()()

double dg::Line::operator() ( double  x)
inline

The documentation for this struct was generated from the following file: