Skip to content

Math.LGamma

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to calculate the log gamma function of. FloatFloat2Float3Float4Color[Any]
Output ➡️ Outputs the log gamma function of the input. The output is always positive for positive inputs. FloatFloat2Float3Float4Color[Any]

This shard calculates the log gamma function of the given input. The log gamma function is the natural logarithm of the absolute value of the gamma function.

Examples

1
2
3
@f3(1.0 0.5 10.0) | Math.LGamma | Log
Math.Subtract(@f3(0.0 0.572365 12.801827)) | Math.Abs
IsLess(@f3(0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f3(0 0.572365 12.8018)