tail head cat sleep
QR code linking to this page

manページ  — ERF

名称

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 の誤差関数を計算します。

erf() 関数と erff() 関数は、次のように、x の誤差関数 (error function) を計算します。 erf(x) = 2/sqrt(pi)*integral from 0 to x of exp(-t*t) dt erf(x) := (2/√π)∫0xexp(-t2)dt

erfc() 関数と erfcf() 関数は x の相補誤差関数 (complementary error function) を計算します。すなわち、 erfc() は 1.0 から誤差関数 erf(x) の結果を減算します。 大きな x に対しては桁が失われてしまうため、この関数が有用です。

関連項目

math(3)

歴史

erf()erfc() 関数は BSD 4.3 で登場しました。

ERF (3) April 20, 1991

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

What will happen when the 32-bit Unix date goes negative in mid-January 2038 does not bear thinking about.
— Henry Spencer