mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Various special functions.
Functions | |
template<typename T > | |
T | mx::math::func::factorial (T x) |
The factorial function. More... | |
template<typename T > | |
T | mx::math::func::legendre_p (int n, T x) |
Legendre Polynomials. More... | |
template<typename T > | |
T | mx::math::func::sign (T x) |
The sign function. More... | |
T mx::math::func::factorial | ( | T | x | ) |
T mx::math::func::legendre_p | ( | int | n, |
T | x | ||
) |
Legendre Polynomials.
See https://en.wikipedia.org/wiki/Legendre_polynomials and https://www.boost.org/doc/libs/1_75_0/libs/math/doc/html/math_toolkit/sf_poly/legendre.html
[in] | n | the order of the Legendre polynomial, n>=0. |
[in] | x | the argument, -1 <= x <= 1. |
Definition at line 52 of file legendre.hpp.
T mx::math::func::sign | ( | T | x | ) |
The sign function.
[in] | x | the argument |
Definition at line 30 of file sign.hpp.
Referenced by mx::sigproc::noll_nm(), mx::astro::solve_kepler_danby(), and mx::astro::solve_keplerdiff_danby().