I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 1.40
sub units 3.12
+
0
MathsSpecialGamma

log Gamma Sum

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

Dependents

Info

Interface

C++
Excel

LogGammaSum

 
doublelogGammaSumdoublea
doubleb )[inline]
Evaluates:

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

a1st argument where 1 <= a <= 2
b2nd 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.