tgammaf函数
概要:
#include <math.h> float tgammaf(float x);
描述:
该函数计算参数的伽玛函数。
如果参数为负数或者,将可能发生域错误或者极点错误。
如果参数太大,将发生范围错误(range error);如果参数太小,将可能发生范围错误(range error)。
伽玛函数的数学定义如下所示:
参数:
float x
            参数为一个float类型的浮点数。
返回值:
函数返回的值。
范例:
 | 
                        
                         | 
                    
输出:
The gamma function of 9.000000 is 40320.000000.
相关内容:
| tgamma | double类型的伽玛函数。 | 
| tgammal | long double类型的伽玛函数。 |