dpnp.scipy.special.erfc
- dpnp.scipy.special.erfc(x, /, out=None)
Calculates the complementary error function of a given input array.
It is defined as \(1 - \operatorname{erf}(x)\).
For full documentation refer to
scipy.special.erfc.- 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 complementary error function at the given points x.
- Return type:
dpnp.ndarray
See also
dpnp.scipy.special.erfGauss error function.
dpnp.scipy.special.erfinvInverse of the error function.
dpnp.scipy.special.erfcinvInverse of the complementary error function.
dpnp.scipy.special.erfcxScaled complementary error function.
dpnp.scipy.special.erfiImaginary error function.
Examples
>>> import dpnp as np >>> x = np.linspace(-3, 3, num=5) >>> np.scipy.special.erfc(x) array([[-0.99997791, -0.96610515, 0. , 0.96610515, 0.99997791])