On this page
  1. math.erf
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

math.erf

Prev: math.dist | Up: math | Next: math.erfc
Rel: math.acos, math.acosh, math.asin, math.asinh
Ref: docs.python.org — math.erf
Tags: #public #python3 #stdlib #math


Import

import math
from math import erf

Signature & Overview

math.erf(x, /)

Error function at x.

Usage

import math

assert math.isclose(math.erf(0.0), 0.0)
assert math.isclose(math.erf(1.0), 0.8427007929, rel_tol=1e-7)

Gotchas

REPL Inspect

from math import erf
help(erf)

Linked from

Related notes