2.1.16.6.5.7 log_gamma


Description

Log Gamma function ln(\Gamma(x))

Syntax

double log_gamma( double x )

Parameters

x
[input] the argument x of the funtion

Return

Returns a value for the logarithm of the Gamma function ln\Gamma(x)

Examples

EX1

void log_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] = log_gamma(x[ii]);
		printf("%4.1f:	%12.4e\n",x[ii],dResult[ii]);
	}
}

Remark

See Also

gamma, incomplete_gamma

Header to Include

origin.h

Reference