EN JA
ERF(3)
ERF(3) FreeBSD Library Functions Manual ERF(3)

名称

erf, erff, erfc, erfcf誤差関数の演算子

ライブラリ

Math Library (libm, -lm)

書式

#include < math.h>

double
erf( double x);

float
erff( float x);

double
erfc( double x);

float
erfcf( float x);

解説

これらの関数は、 x の誤差関数 (error function) を計算します。

erf() と erff() 関数は、x の誤差関数を計算します。ここで、

erf(x) = 2/sqrt(pi)∗integral from 0 to x of exp(-t∗t) dt.

erfc() と erfcf() 関数は、 x の相補誤差関数 (complementary error function) を計算します。つまり、 erfc() は、1.0 から誤差関数 erf( x) の結果を減算します。大きな x 桁が消失するので、これは、有用です。

関連項目

math(3)

歴史

erf() と erfc() 関数は、 4.3BSD で登場しました。
April 20, 1991 FreeBSD