C examples for math.h:tgamma
function
<cmath> <ctgmath> <math.h>
Returns the gamma function of x.
long double tgammal (long double x); long double tgamma (long double x); double tgamma ( double x); float tgammaf ( float x); float tgamma ( float x); double tgamma (T x);
Parameter | Description |
---|---|
x | Parameter for the gamma function. |
Gamma function of x.
#include <stdio.h> #include <math.h> int main ()/* w w w. j a v a2s.com*/ { double param = 0.5; double result = tgamma (param); printf ("tgamma(%f) = %f\n", param, result ); return 0; }