NuTo
Numerics Tool
Functions
NuTo::Math::Polynomial Namespace Reference

Functions

double Legendre (int n, double x, int k=0)
 value of the k-th derivative of legendre polynomial More...
 
std::vector< double > LegendreRoots (int n)
 roots of legendre polynomial More...
 
std::vector< double > LegendreDerivRoots (int n)
 roots of first derivative of legendre polynomial More...
 

Function Documentation

double NuTo::Math::Polynomial::Legendre ( int  n,
double  x,
int  k = 0 
)

value of the k-th derivative of legendre polynomial

Remarks
this includes the 0-th derivative, the actual legendre polynomial
Parameters
npolynomial order
xargument of polynomial
kderivative order
Returns
value of polynomial at x
std::vector< double > NuTo::Math::Polynomial::LegendreDerivRoots ( int  n)

roots of first derivative of legendre polynomial

Parameters
npolynomial order
Returns
vector of the n-2 roots
std::vector< double > NuTo::Math::Polynomial::LegendreRoots ( int  n)

roots of legendre polynomial

Parameters
npolynomial order
Returns
vector of the n-1 roots