tgammad32()、tgammad64()、tgammad128() - ガンマ関数の計算

標準

標準/拡張機能 C/C++ 依存項目

C/C++ DFP

両方 z/OS V1.10

形式

#define __STDC_WANT_DEC_FP__
#include <math.h>

_Decimal32  tgammad32(_Decimal32 x);
_Decimal64  tgammad64(_Decimal64 x);
_Decimal128 tgammad128(_Decimal128 x);
_Decimal32  tgamma(_Decimal32 x);     /* C++ only */
_Decimal64  tgamma(_Decimal64 x);     /* C++ only */
_Decimal128 tgamma(_Decimal128 x);    /* C++ only */

機能説明

tgamma() 関数は、x のガンマ関数を計算します。

これらの関数は、IEEE 10 進数浮動小数点形式で機能します。詳細は、IEEE 10 進数浮動小数点を参照してください。

注: IEEE 10 進数浮動小数点を使用するためには、ハードウェアに 10 進数浮動小数点機能 がインストールされている必要があります。

戻り値

tgamma 関数は G(x) を戻します。

x が負の整数であるか、 または x がゼロで、結果を表現できない場合は、ドメイン・エラーが発生します。 x の絶対値が大きすぎるか小さすぎる場合は、範囲エラーが発生します。

CELEBT24
⁄* CELEBT24

   This example illustrates the tgammad128() function.

*⁄

#define  __STDC_WANT_DEC_FP__
#include <math.h>
#include <stdio.h>

int main(void)
{
   _Decimal128 x, y;

   x = 5.6DL;
   y = tgammad128(x);

   printf("tgammad128(%DDf) = %DDf¥n", x, y);
}

関連情報