Skip to content

Function factorial_approx

function factorial_approx(const T1 &) math

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

Returns the approximate factorial of an argument.

Computed as gamma(x + 1), which matches the factorial for non-negative integers. The result is an approximation.

Template parameters
T1 Scalar numeric type.
Parameters
x Argument to the factorial.
Returns
Approximation of x! as a floating-point value.

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

Declared at math/gamma.hpp:59

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