Current Mathematical functions.
This module provides implementation for scalar and SIMD versions of mathematical functions, mainly libc++ ones.
Required header:
Contents | |
| Constants | |
| Continued Fractions | |
| Exponential | |
| Hyperbolic | |
| Inverse hyperbolic | |
| Inverse trigonometric | |
| Logarithm | |
| Trigonometric | |
Variables | |
| constexpr auto | eve::horner = functor<horner_t> |
| Implement the horner scheme to evaluate polynomials with coefficients in decreasing power order. | |
| constexpr auto | eve::reverse_horner = functor<reverse_horner_t> |
| implement the horner scheme to evaluate polynomials with coefficients in increasing power order | |
| constexpr auto | eve::tchebsum = functor<tchebsum_t> |
| Implement the evaluation of tchebytchev polynomials with coefficients in increasing or decreasing power order. | |
|
inlineconstexpr |
Implement the horner scheme to evaluate polynomials with coefficients in decreasing power order.
If \((c_i)_{0\le i\le n-1}\) denotes the coefficients of the polynomial by decreasing power order, the Horner scheme evaluates the polynom \(p\) at \(x\) by :
\(\qquad\displaystyle p(x) = (((c_0x+c_1)x+ ... )x + c_{n-1})\)
Parameters
Return value
If \((c_i)_{0\le i\le n-1}\) denotes the coefficients of the polynomial by decreasing power order, the Horner scheme evaluates the polynom \(p\) at \(x\) by : \(\qquad\qquad\displaystyle p(x) = (((c_0x+c_1)x+ ... )x + c_{n-1})\)
|
inlineconstexpr |
implement the horner scheme to evaluate polynomials with coefficients in increasing power order
Parameters
Return value
If \((c_i)_{0\le i\le n-1}\) denotes the coefficients of the polynomial by increasing power order, the reverse Horner scheme evaluates the polynom \(p\) at \(x\) using the following formula:
\(\qquad\qquad\displaystyle p(x) = (((c_{n-1}x+c_{n-2})x+ ... )x + c_0)\)
|
inlineconstexpr |
Implement the evaluation of tchebytchev polynomials with coefficients in increasing or decreasing power order.
If \((c_i)_{0\le i\le n-1}\) denotes the coefficients of the polynomial by increasing power order, the Tchebsum scheme evaluates : \(\qquad\displaystyle p(x) = c_0/2+\sum_1^n c_n T_n(x))\)
Parameters
Return value
If \((c_i)_{0\le i\le n-1}\) denotes the Tchebytchev coefficients of the polynomial The Tchebsum scheme evaluates : \(\qquad\displaystyle p(x) = c_0/2+\sum_1^n c_n T_n(x))\)