erfc()
function is used to find the the complementary error function at x in Python for the given input(x – parameter).
Syntax of erfc()
Function
The syntax of
erfc()
function in Python is:
math.erfc(x)
Parameters of erfc()
Function in Python
x
– Where x
is any valid python number (positive or negative). This parameter is required.Note: If the
x
parameter is not a number, erfc()
function will return an Error.
Compatibility
erfc()
function is available and compatible with both Python 2.x
and 3.x
. This function is a part of python standard math library.
Return Value of erfc()
Function in Python
erfc()
function returns the complementary error function at x for the given input.
Python erfc()
Function Example
# import math library import math print(math.erfc(-0.2)) print(math.erfc(0)) print(math.erfc(0.2)) print(math.erfc(77)) print(math.erfc(-3677))
Output: