Python math.erfc() Method

❮ Math Methods


Example

Print the complementary error function for different numbers:

# Import math Library
import math

# Print complementary error function for different numbers
print (math.erfc(0.67))
print (math.erfc(1.34))
print (math.erfc(-6))
Try it Yourself »

Definition and Usage

The math.erfc() method returns the complementary error function of a number.

This method accepts a value between - inf and + inf, and returns a value between 0 and 2.


Syntax

math.erfc(x)

Parameter Values

Parameter Description
x Required. A number to find the complementary error function of

Technical Details

Return Value: A float value, representing the complementary error function of a number
Python Version: 3.2

❮ Math Methods

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.