erfc#

ivy.erfc(x, /, *, out=None)[source]#

Complementary error function, 1 - erf(x)

Parameters:
  • x (Union[Array, NativeArray]) – Input array of real or complex valued argument.

  • out (Optional[Array], default: None) – optional output array, for writing the result to. It must have a shape that the inputs broadcast to.

Return type:

Array

Returns:

ret – Values of the complementary error function.

Examples

>>> x = ivy.array([2, -1., 0])
>>> ivy.erfc(x)
ivy.array([0.00467773, 1.84270084, 1.        ])
Array.erfc(self, /, *, out=None)[source]#

ivy.Array instance method variant of ivy.erfc. This method simply wraps the function, and so the docstring for ivy.erfc also applies to this method with minimal changes.

Parameters:
  • self (Array) – Input array with real or complex valued argument.

  • out (Optional[Array], default: None) – Alternate output array in which to place the result. The default is None.

Return type:

Array

Returns:

ret – Values of the complementary error function.

Examples

>>> x = ivy.array([0, -1., 10.])
>>> x.erfc()
ivy.array([1.00000000e+00, 1.84270084e+00, 2.80259693e-45])
Container.erfc(self, /, *, out=None)[source]#

ivy.Container instance method variant of ivy.erfc. This method simply wraps the function, and so the docstring for ivy.erfc also applies to this method with minimal changes.

Parameters:
  • self (Container) – The container whose array contains real or complex valued argument.

  • out (Optional[Container], default: None) – optional output container, for writing the result to.

Return type:

Container

Returns:

ret – container with values of the complementary error function.

Examples

With one ivy.Container input: >>> x = ivy.Container(a=ivy.array([1., 2., 3.]), b=ivy.array([-1., -2., -3.])) >>> x.erfc() {

a: ivy.array([1.57299206e-01, 4.67773480e-03, 2.20904985e-05]), b: ivy.array([1.84270084, 1.99532223, 1.99997795])

}