sgnGamma

fnreal sgnGamma(real x)

The sign of Γ(x).

Parameters

xthe argument of Γ

Returns

-1 if Γ(x) < 0, +1 if Γ(x) > 0, and NaN if Γ(x)

does not exist.

Note

This function can be used in conjunction with logGamma to evaluate

Γ(x) when gamma(x) is too large to be represented as a real.