名前


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)

openSUSE Logo

コンテンツ