Skip navigation

FlexPro Documentation 2025

LogGamma

Calculates the natural logarithm of the absolute value of the gamma function for real-valued arguments.

Syntax

LogGamma(Number)

 

The syntax of the LogGamma function consists of the following parts:

Part

Description

Number

The argument for the function.

All data structures are allowed. All real data types are permitted.

Remarks

The data type of the result is always 64-bit floating point.

The structure of the result corresponds to that of the argument Number. The calculation is done element-by-element where appropriate.

The result has the unit 1, if Number has a unit. Otherwise, it has no unit.

For aggregate data structures, only the Y component is calculated. At points where the function assumes numerical values that are too large (overflow) and at pole points of the function, a void value is output as the result.

The following illustration shows the course of the function within the interval [-6, 6]:

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

LogGamma(0.5)

Results in 0.572365.

Dim x = Series(-6, 6, 0.01)
Signal(LogGamma(x), x)
 

Calculates a signal with the course of the curve in the interval [-6, 6].

See Also

Gamma Function

Erf Function

Factorial Function