Berserk Docs
Scalar FunctionsMath Functions

erf

Error function erf(x) = (2/√π) ∫₀ˣ e^{-t²} dt.

Syntax

erf(x)

Parameters

Prop

Type

Returns: real

Examples

Example 1

print erf(0.5)
print_0 (real)
0.5204998778130465

On this page