This module provides implementation for scalar and SIMD versions of polynomial evaluation functions.
Convenience header:
Variables | |
| constexpr auto | eve::newton = functor<newton_t> |
| Implement the Newton scheme to evaluate polynomials. | |
| constexpr auto | eve::abel = functor<abel_t> |
| Computes the value of the Abel function of order n at x: \(x(x-an)^{n-1}\). for positive integer n it is Abel polynomial. | |
| constexpr auto | eve::gegenbauer = functor<gegenbauer_t> |
| strict_elementwise_callable object computing the value of a gegenbauer polynomial \( \mathbf{C}_n^\lambda(x)\). | |
| constexpr auto | eve::hermite = functor<hermite_t> |
| strict_elementwise_callable object computing the value of the 'physicists' Hermite polynomial of order n at x: | |
| constexpr auto | eve::jacobi = functor<jacobi_t> |
| strict_elementwise_callable object computing the value of the Jacobi polynomials \(P^{\alpha, \beta}_n(x)\). | |
| constexpr auto | eve::laguerre = functor<laguerre_t> |
| strict_elementwise_callable object computing the value of the Laguerre and associated Laguerre polynomials of order n at x: | |
| constexpr auto | eve::legendre = functor<legendre_t> |
| Computes the value of the Legendre and associated Legendre polynomials of order n at x: | |
| constexpr auto | eve::tchebytchev = functor<tchebytchev_t> |
| Computes the value of the Tchebytchev polynomial of order n at x: | |
|
inlineconstexpr |
Computes the value of the Abel function of order n at x: \(x(x-an)^{n-1}\). for positive integer n it is Abel polynomial.
Parameters
Return value
1.The value of the polynomial at x is returned.
|
inlineconstexpr |
strict_elementwise_callable object computing the value of a gegenbauer polynomial \( \mathbf{C}_n^\lambda(x)\).
Defined in header
Parameters
Return value
The value of \( \mathbf{C}_n^\lambda(x)\) is returned.
The Gegenbauer polynomials are a sequence of orthogonal polynomials relative to \((1-x^2)^{\lambda-1/2}\) on the \([-1, +1]\) interval satisfying the following recurrence relation:
|
inlineconstexpr |
strict_elementwise_callable object computing the value of the 'physicists' Hermite polynomial of order n at x:
The physicists Hermite polynomials are a sequence of orthogonal polynomials relative to \(e^{-x^2}\) on the \([-\infty, +\infty]\) interval satisfying the following recurrence relation:
Parameters
Return value
|
inlineconstexpr |
strict_elementwise_callable object computing the value of the Jacobi polynomials \(P^{\alpha, \beta}_n(x)\).
Defined in header
Parameters
Return value
The Jacobi polynomials are a sequence of orthogonal polynomials relative to \((1-x)^{\alpha}(1+x)^{\beta}\), for \(\alpha \) and \(\beta \) greater than -1, on the \([-1, +1]\) interval.
They can be defined via a Rodrigues formula: \(\displaystyle P^{\alpha, \beta}_n(x) = \frac{(-1)^n}{2^n n!}(1-x)^{-\alpha} (1+x)^{-\beta} \frac{d}{dx^n}\left\{ (1-x)^{\alpha}(1+x)^{\beta}(1-x^2)^n \right\}\).
|
inlineconstexpr |
strict_elementwise_callable object computing the value of the Laguerre and associated Laguerre polynomials of order n at x:
Parameters
Return value
|
inlineconstexpr |
Computes the value of the Legendre and associated Legendre polynomials of order n at x:
Defined in header
Parameters
Return value
|
inlineconstexpr |
Implement the Newton scheme to evaluate polynomials.
If \((c_i)_{0\le i\le n-1}\) denotes the coefficients of the polynomial by decreasing power order, and \((m_i)_{0\le i\le n-2}\) the nodes, the Newton scheme evaluates the polynom \(p\) at \(x\) using the following formula :
\(\qquad\displaystyle p(x) = (((c_0(x-m_0)+c_1)(x-m_1)+ ... )(x-m_{n-2}) + c_{n-1})\)
Parameters
Return value
|
inlineconstexpr |
Computes the value of the Tchebytchev polynomial of order n at x:
Parameters
Return value
1.The value of the polynomial at x is returned.