SciPy

scipy.special.gammasgn

scipy.special.gammasgn(x) = <ufunc 'gammasgn'>

Sign of the gamma function.

See also

gammaln, loggamma