Skip to main content

erf

Function erf 

Source
pub fn erf<T: ErfArg>(z: T) -> T
Expand description

Error function $\erf(z)$ for real or complex input

This function is defined as 1:

$$ \erf(z) = {2 \over \sqrt\pi} \int_0^z e^{-t^2} \dd t . $$

Corresponds to scipy.special.erf.

§See also

  • erfc: Complementary error function
  • erfi: Imaginary error function
  • erfinv: Inverse error function
  • erf_zeros: Zeros of the error function

  1. NIST Digital Library of Mathematical Functions, https://dlmf.nist.gov/7.2.E1. ↩