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);

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.





















Home »
  C Language »
    Function Reference »




assert.h
ctype.h
math.h
setjmp.h
signal.h
stdio.h
stdlib.h
string.h
time.h
wctype.h