tuple_tgammatuple_tgammaTupleTgammaTupleTgammatuple_tgamma (Operator)

Name

tuple_tgammatuple_tgammaTupleTgammaTupleTgammatuple_tgamma — Compute the gamma function of a tuple.

Signature

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

Description

tuple_tgammatuple_tgammaTupleTgammaTupleTgammatuple_tgamma computes the gamma function of the input tuple TTTtt. 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 GammaGammaGammagammagamma. 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_tgammaTupleTgammaTupleTgammatuple_tgamma, which can be used in an expression in the following syntax:

Gamma := tgamma(T)

Execution Information

Parameters

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

Input tuple.

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

Value of the gamma function of the input tuple.

Alternatives

tuple_lgammatuple_lgammaTupleLgammaTupleLgammatuple_lgamma

Module

Foundation