Skip to content

erf

Error function.

v = erf(x)

Returns (2/√π) · ∫₀ˣ exp(-t²) dt — the error function. Closely related to the standard-normal CDF: Φ(x) = 0.5 · (1 + erf(x/√2)).

erf(1) % ≈ 0.8427
  • erfc — Complementary error function 1 - erf(x).
  • erfcx — Scaled complementary error function exp(x²) · erfc(x).
  • erfinv — Inverse error function.
  • norm_s_dist — Standard-normal PDF or CDF.