|
Mantid
|
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... | |
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.
| 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)\).
| n | Order of the required polynomial |
| x | X value to evaluate the polynomial in the range [-1,1]. No checking is performed. |
Definition at line 31 of file ChebyshevPolynomial.cpp.
References n, and Mantid::Geometry::x.