erf (Function)

Signature: erf(x: t0) -> t0

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

Parameters

  • x (t0): The float argument

Returns: t0

Example

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