C tgamma function gets the gamma function of argument
Syntax
C tgamma function has the following syntax.
float tgammaf(float arg);
double tgamma(double arg);
long double tgammal(long double arg);
Header
C tgamma functions are from header file math.h
.
Description
C tgamma functions return the gamma function of arg
.
Example
Get the gamma function of argument by using C tgamma function.
#include <math.h>
#include <stdio.h>
//w w w. ja va2 s . c o m
int main(void)
{
printf("%f\n", tgamma (1.2));
return 0;
}
The code above generates the following result.