名前空間
変種
操作

std::lgamma

提供: cppreference.com
< cpp‎ | numeric‎ | math

 
 
 
一般的な数学関数
関数
基本的な演算
remainder(C++11)
remquo(C++11)
fma(C++11)
fmax(C++11)
fmin(C++11)
fdim(C++11)
nan
nanf
nanl
(C++11)
(C++11)
(C++11)
指数関数
exp
exp2(C++11)
expm1(C++11)
log
log10
log1p(C++11)
log2(C++11)
冪関数
sqrt
cbrt(C++11)
hypot(C++11)
pow
三角関数と双曲線関数
sinh
cosh
tanh
asinh(C++11)
acosh(C++11)
atanh(C++11)
誤差関数とガンマ関数
erf(C++11)
erfc(C++11)
lgamma(C++11)
tgamma(C++11)
最も近い整数
ceil
floor
round
lround
llround
(C++11)
(C++11)
(C++11)
trunc(C++11)
nearbyint(C++11)
rint
lrint
llrint
(C++11)
(C++11)
(C++11)
浮動小数点操作関数
ldexp
scalbn
scalbln
(C++11)
(C++11)
ilogb(C++11)
logb(C++11)
frexp
modf
nextafter
nexttoward
(C++11)
(C++11)
copysign(C++11)
分類および比較
fpclassify(C++11)
isfinite(C++11)
isinf(C++11)
isnan(C++11)
isnormal(C++11)
signbit(C++11)
isgreater(C++11)
isgreaterequal(C++11)
isless(C++11)
islessequal(C++11)
islessgreater(C++11)
isunordered(C++11)
マクロ定数
FP_NORMAL
FP_SUBNORMAL
FP_ZERO
FP_INFINITE
FP_NAN
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
 
ヘッダ <cmath> で定義
float       lgamma( float arg );
(C++11およびそれ以降)
double      lgamma( double arg );
(C++11およびそれ以降)
long double lgamma( long double arg );
(C++11およびそれ以降)
double      lgamma( Integral arg );
(C++11およびそれ以降)
ガンマ関数argの絶対値の自然対数を計算します.
Original:
Computes the natural logarithm of the absolute value of the ガンマ関数 of arg.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

arg -
浮動小数点値
Original:
floating point value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

argですlog
e
|
0
targ-1
e-t dt|
のガンマ関数の対数の値.
Original:
The value of the logarithm of the gamma function of arg, that is log
e
|
0
targ-1
e-t dt|
.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
argは自然数である場合、std::lgamma(arg)arg-1の階乗の対数です.
Original:
If arg is a natural number, std::lgamma(arg) is the logarithm of the factorial of arg-1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 例外

argがゼロまたは負の整数の場合、極エラーが発生することがあり、FE_INVALIDまたはFE_DIVBYZEROが発生する場合があります.
Original:
If arg is zero or a negative integer, pole error may occur and FE_INVALID or FE_DIVBYZERO may be raised.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
argが大きすぎる場合、範囲エラーが発生することがありますとFE_OVERFLOWが発生する場合があります.
Original:
If arg is too large, range error may occur and FE_OVERFLOW may be raised.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] ノート

POSIX specificationはさらにlgammaを実行する毎に外部変数argsigngamのガンマ関数の符号を格納する必要があります.
Original:
POSIX specification additionally requires that each execution of lgamma stores the sign of the gamma function of arg in the external variable signgam.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 参照

(C++11)
ガンマ関数を計算します
(関数) [edit]

[編集] 外部リンク

Weisstein, Eric W. "Log Gamma Function."MathWorldのから - WolframのWebリソース.
Original:
Weisstein, Eric W. "Log Gamma Function." From MathWorld--A Wolfram Web Resource.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.