mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Special Functions

Various special functions.

Modules

 The Airy Pattern
 
 Bessel Functions
 
 The Exponentially Modified Gaussian Distribution
 
 The Gamma Function
 
 The Gamma Distribution
 
 The Gaussian Function
 
 The Logistic Function
 
 Machine Precision
 
 The Moffat Function
 
 The Weibull Distribution
 

Functions

template<typename T >
mx::math::func::factorial (T x)
 The factorial function. More...
 
template<typename T >
mx::math::func::legendre_p (int n, T x)
 Legendre Polynomials. More...
 
template<typename T >
mx::math::func::sign (T x)
 The sign function. More...
 

Function Documentation

◆ factorial()

template<typename T >
T mx::math::func::factorial ( x)

The factorial function.

Parameters
[in]xthe argument

Definition at line 48 of file factorial.hpp.

◆ legendre_p()

template<typename T >
T mx::math::func::legendre_p ( int  n,
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

Returns
the value of the n-th Legendre polynomial at x.
Parameters
[in]nthe order of the Legendre polynomial, n>=0.
[in]xthe argument, -1 <= x <= 1.

Definition at line 52 of file legendre.hpp.

◆ sign()

template<typename T >
T mx::math::func::sign ( x)

The sign function.

Parameters
[in]xthe 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().