Skip to content

Function gamma

function gamma(const T1 &) math

template <numeric T1>
KFR_FUNCTION flt_type<T1> gamma(const T1& x)

Returns the approximate gamma function of an argument.

Uses a rational approximation (Lanczos-like) valid for positive real arguments. The result is an approximation, not the exact value.

Template parameters
T1 Scalar numeric type.
Parameters
x Argument to the gamma function.
Returns
Approximation of Gamma(x), as a floating-point value.

Fully qualified name: kfr::gamma(const T1 &)

Declared at math/gamma.hpp:43

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.