Skip to content

Other math functions


factorial function

constexpr uint64_t factorial(int n)

Returns the factorial of an argument. Returns max(uint64_t) if does not fit to uint64_t


factorial_approx function

template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> factorial_approx(const T1 &x)

Returns the approximate factorial of an argument


gamma function

template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> gamma(const T1 &x)

Returns the approximate gamma function of an argument


Auto-generated from sources, Revision 5191a48df06ea47104ca67db19fa82058d09c20a, https://github.com/kfrlib/kfr/blob/5191a48df06ea47104ca67db19fa82058d09c20a/include/kfr/