erf

Autres langues

Langue: ja

Version: 2002-07-27 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

名前

erf, erff, erfl, erfc, erfcf, erfcl - 誤差関数と相補誤差関数

書式

 #include <math.h>
 
 double erf(double x);
 
float erff(float x);
long double erfl(long double x); double erfc(double x);
float erfcf(float x);
long double erfcl(long double x);
-lm でリンクする。

説明

erf() は x の誤差関数を返す関数で、
erf(x) = 2/sqrt(pi)* integral from 0 to x of exp(-t*t) dt

で定義されている。 erfc() 関数は x の相補誤差関数であり、 1.0 - erf(x) である。

準拠

SVr4, 4.3BSD, C99. float 版と long double 版は C99 の要求仕様である。

関連項目

cerf(3), exp(3)