A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3schools.com/python/ref_math_erf.asp below:

Website Navigation


Python math.erf() Method

Python math.erf() Method

❮ Math Methods

Example

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 Usage

The 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: A float 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))

Try it Yourself »

❮ Math Methods

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