mars.tensor.special.rgamma#

mars.tensor.special.rgamma(x, out=None, **kwargs)[source]#

Reciprocal of the gamma function.

Defined as \(1 / \Gamma(z)\), where \(\Gamma\) is the gamma function. For more on the gamma function see gamma.

Parameters
  • z (array_like) – Real or complex valued input

  • out (ndarray, optional) – Optional output array for the function results

Returns

Function results

Return type

scalar or ndarray

Notes

The gamma function has no zeros and has simple poles at nonpositive integers, so rgamma is an entire function with zeros at the nonpositive integers. See the discussion in [dlmf] for more details.

See also

gamma, gammaln, loggamma

References

dlmf

Nist, Digital Library of Mathematical functions, https://dlmf.nist.gov/5.2#i