mindspore.ops.igammac
- mindspore.ops.igammac(input, other)[source]
Calculates upper regularized incomplete Gamma function.
If we define input as a and other as x, the upper regularized incomplete Gamma function is defined as:
\[Q(a, x) = Gamma(a, x) / Gamma(a) = 1 - P(a, x)\]where
\[Gamma(a, x) = \int_{x}^{\infty} t^{a-1} exp(-t) dt\]is the upper incomplete Gama function.
Above \(P(a, x)\) is the lower regularized incomplete Gamma function.
Warning
This is an experimental API that is subject to change or deletion.
- Parameters
- Returns
Tensor
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore >>> input = mindspore.tensor([2.0, 4.0, 6.0, 8.0]) >>> other = mindspore.tensor([2.0, 3.0, 4.0, 5.0]) >>> output = mindspore.ops.igammac(input, other) >>> print(output) [0.40600574 0.6472322 0.78513044 0.8666282 ]