2.1.16.6.5.2 gamma


Description

Gamma function \Gamma(x)

Syntax

double gamma( double x )

Parameters

x
[input] the argument x of the function

Return

Returns the value of the Gamma function \Gamma(x)

Examples

EX1

void gamma_ex1()
{
	double x[5] = {1.0,1.25,1.5,1.75,2.0}
	double dResult[5];
	for(int ii=0;ii<5; ii++)
	{
		dResult[ii] = gamma(x[ii]);
		printf("%4.1f:	%12.4e\n",x[ii],dResult[ii]);
	}
}

Remark

See Also

log_gamma, incomplete_gamma

Header to Include

origin.h

Reference