dpnp.scipy.special.erfcx

dpnp.scipy.special.erfcx(x, /, out=None)

Calculates the scaled complementary error function of a given input array.

It is defined as \(\exp(x^2) * \operatorname{erfc}(x)\).

For full documentation refer to scipy.special.erfcx.

Parameters:
  • x ({dpnp.ndarray, usm_ndarray}) -- Input array, expected to have a real-valued floating-point data type.

  • out ({None, dpnp.ndarray, usm_ndarray, tuple of ndarray}, optional) --

    Optional output array for the function values. A tuple (possible only as a keyword argument) must have length equal to the number of outputs.

    Default: None..

Returns:

out -- The values of the scaled complementary error function at the given points x.

Return type:

dpnp.ndarray

See also

dpnp.scipy.special.erf

Gauss error function.

dpnp.scipy.special.erfc

Complementary error function.

dpnp.scipy.special.erfinv

Inverse of the error function.

dpnp.scipy.special.erfcinv

Inverse of the complementary error function.

Examples

>>> import dpnp as np
>>> x = np.linspace(-3, 3, num=4)
>>> np.scipy.special.erfcx(x)
array([1.62059889e+04, 5.00898008e+00, 4.27583576e-01, 1.79001151e-01])