• https://me.yahoo.com
COST (GBP)
1.40
3.12
0

# log Gamma Sum

Returns the natural logarithm of the gamma function of the sum of two numbers.
Controller: CodeCogs

C++
Excel

## LogGammaSum

 doublelogGammaSum( double a double b )[inline]
Evaluates:
$ln(&space;\Gamma(a+b)&space;)$

## Example:

```#include <codecogs/maths/special/gamma/loggammasum.h>
#include <stdio.h>
int main()
{
double a[10] = { 1.6, 1.4, 1.7, 2.0, 1.1, 1.1, 1.2, 1.3, 1.2, 1.5 };
double b[10] = { 1.2, 2.0, 1.0, 1.2, 1.2, 1.7, 2.0, 1.5, 1.4, 1.5 };
for( int i=0; i<10; i++ )
printf( "logGammaSum( %2.1f, %2.1f ) = %f\n",
a[i], b[i], Maths::Special::Gamma::logGammaSum( a[i], b[i] ) );
return getchar();
}```

## Output:

```logGammaSum( 1.6, 1.2 ) = 0.516703
logGammaSum( 1.4, 2.0 ) = 1.092328
logGammaSum( 1.7, 1.0 ) = 0.434821
logGammaSum( 2.0, 1.2 ) = 0.885405
logGammaSum( 1.1, 1.2 ) = 0.154187
logGammaSum( 1.1, 1.7 ) = 0.516703
logGammaSum( 1.2, 2.0 ) = 0.885405
logGammaSum( 1.3, 1.5 ) = 0.516703
logGammaSum( 1.2, 1.4 ) = 0.357412
logGammaSum( 1.5, 1.5 ) = 0.693147```

### Parameters

 a 1st argument where 1 <= a <= 2 b 2nd argument where 1 <= b <= 2

### Authors

Barry W. Brown, James Lovato, Kathy Russell
Updated by Vince Cole (April 2005)
##### Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.