Print error function for different numbers:
# Import math Library
import math
# Print error function for different numbers
print (math.erf(0.67))
print (math.erf(1.34))
print (math.erf(-6))
Try it Yourself » Definition and UsageThe math.erf()
method returns the error function of a number.
This method accepts a value between - inf and + inf, and returns a value between - 1 to + 1.
Syntax Parameter Values Parameter Description x Required. A number to find the error function of Technical Details Return Value: Afloat
value, representing the error function of a number Python Version: 3.2 More Examples Example
Calculate the mathematical error function of the same number, positive and negative:
print (math.erf(1.28))
print (math.erf(-1.28))
Track your progress - it's free!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4