名前
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);
説明
erf() は x の誤差関数を返す関数で、
erf(x) = 2/sqrt(pi)* integral from 0 to x of exp(-t*t) dt | |
準拠
SVr4, 4.3BSD, C99. float 版と long double 版は C99 の要求仕様である。