tuple_tgammatuple_tgammaTupleTgammaTupleTgammatuple_tgamma (Operator)


tuple_tgammatuple_tgammaTupleTgammaTupleTgammatuple_tgamma — Compute the gamma function of a tuple.


tuple_tgamma( : : T : Gamma)

Herror tuple_tgamma(double T, double* Gamma)

Herror T_tuple_tgamma(const Htuple T, Htuple* Gamma)

void TupleTgamma(const HTuple& T, HTuple* Gamma)

HTuple HTuple::TupleTgamma() const

static void HOperatorSet.TupleTgamma(HTuple t, out HTuple gamma)

HTuple HTuple.TupleTgamma()

def tuple_tgamma(t: MaybeSequence[Union[float, int]]) -> Sequence[float]

def tuple_tgamma_s(t: MaybeSequence[Union[float, int]]) -> float


tuple_tgammatuple_tgammaTupleTgammaTupleTgammaTupleTgammatuple_tgamma computes the gamma function of the input tuple TTTTtt. The gamma function is defined as: It is defined for every real number except for nonpositive integers. For nonnegative integer , it holds that and, more generally, for all : The value of the gamma function is always returned as a floating point number in GammaGammaGammaGammagammagamma. The gamma function of a string is not allowed.

Exception: Empty input tuple

If the input tuple is empty, the operator returns an empty tuple.

HDevelop In-line Operation

HDevelop provides an in-line operation for tuple_tgammatuple_tgammaTupleTgammaTupleTgammaTupleTgammatuple_tgamma, which can be used in an expression in the following syntax:

Gamma := tgamma(T)

Execution Information


TTTTtt (input_control)  number(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input tuple.

GammaGammaGammaGammagammagamma (output_control)  number(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Value of the gamma function of the input tuple.