Skip navigation

FlexPro Documentation 2025

Gamma

Calculates the gamma function for real-valued arguments.

Syntax

Gamma(Number)

 

The syntax of the Gamma 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.

The gamma function is defined for positive x as follows:

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

Gamma(4)

Results in 6.

Gamma(0.5)

Results in 1.772454.

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

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

See Also

Factorial Function

LogGamma Function

Erf Function