Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Mantid::Kernel::ChebyshevPolynomial Struct Reference

Evaluates a single Chebyshev polynomial (first kind) for x in range [-1,1]. More...

#include <ChebyshevPolynomial.h>

Public Member Functions

double operator() (const size_t n, const double x)
 Return the value of the nth Chebyshev polynomial of the first kind \(T_n(x) = cos(ncos^-1x)\). More...
 

Detailed Description

Evaluates a single Chebyshev polynomial (first kind) for x in range [-1,1].

See http://mathworld.wolfram.com/ChebyshevPolynomialoftheFirstKind.html for more information

Definition at line 22 of file ChebyshevPolynomial.h.

Member Function Documentation

◆ operator()()

double Mantid::Kernel::ChebyshevPolynomial::operator() ( const size_t  n,
const double  x 
)

Return the value of the nth Chebyshev polynomial of the first kind \(T_n(x) = cos(ncos^-1x)\).

Parameters
nOrder of the required polynomial
xX value to evaluate the polynomial in the range [-1,1]. No checking is performed.
Returns
The value of the nth polynomial at the specified value

Definition at line 31 of file ChebyshevPolynomial.cpp.

References n, and Mantid::Geometry::x.


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