C++官网参考链接:https://cplusplus.com/reference/cmath/tgamma/
函数
<cmath> <ctgmath>
tgamma
C99
double tgamma(double x);
float tgammaf(float x);
long double tgammal(long double x);
C++11
double tgamma(double x);
float tgamma(float x);
long double tgamma(long double x);
double tgamma(T x); // additional overloads for integral types
计算伽马函数
返回x的伽马函数。
C99
头文件<tgmath.h>提供了该函数的泛型类型的宏版本。
C++11
在此头文件(