erf (Function)

Signature: erf(x: float) -> float

Description: The error function, the Gaussian CDF up to scaling. Total; erf(+inf) is 1.0 and erf(-inf) is -1.0.

Parameters

  • x (float): The float argument

Returns: float

Example

print(erf(1.0))  // 0.8427007929497148
print (erf 1.0)  // 0.8427007929497148