Skip to content

Math.TGamma

Name Mandatory Description Default Type
⬅️ Input This shard calculates the gamma function of the given input. FloatFloat2Float3Float4Color[Any]
Output ➡️ Outputs the gamma function of the input. The output is always positive for positive inputs. FloatFloat2Float3Float4Color[Any]

This shard calculates the gamma function of the given input. The gamma function is a mathematical function that extends the concept of factorial to non-integer and complex numbers.

Details

If a sequence of floats was provided as input, the shard will calculate the gamma function for each element in the sequence and output a sequence.

If a sequence of vectors was provided as input, the shard will calculate the gamma function for each component in each vector in the sequence and output a sequence of vectors where each component in each vector is the result of the gamma function calculation of the corresponding component in the input sequence.

Examples

1
2
10.0 | Math.TGamma | Log
Assert.IsAlmost(362880.0 Break: true)

[info] [sample-wire] 362880