Home >>Python math Module >Python math.erf() Method
Python math.erf() Method in python is used to returns the complementary error function of a number, it is also known as gauss error function. It accepts a value range between [-a, a], and returns the error function in between [-1,1].
Syntax:math.erf(x)
Parameter | Description |
---|---|
x | It is required a number for finding the error function |
import math
print (math.erf(2.34))
print (math.erf(0.12))
print (math.erf(-2))
import math
print (math.erf(3.17))
print (math.erf(-3.17))