Examples - pi.science.math.PIGamma
1. How to compute GAMMA function for X ?
Console.WriteLine( "Gamma x=0.3 => " + PIGamma.Gamma_Lanczos( 0.3 ) );
Console.WriteLine( "Gamma x=1.0 => " + PIGamma.Gamma_Lanczos( 1.0 ) );
Console.WriteLine( "Gamma x=2.23 => " + PIGamma.Gamma_Lanczos( 2.23 ) );
Console.WriteLine( "Gamma x=24.0 => " + PIGamma.Gamma_Lanczos( 24.0 ) );
Console.WriteLine( "Gamma x=25.5 => " + PIGamma.Gamma_Lanczos( 25.5 ) );
Output:
Gamma x=0.3 => 2,99156898768759
Gamma x=1.0 => 1
Gamma x=2.23 => 1,12022847333792
Gamma x=24.0 => 2,5852016738885E+22
Gamma x=25.5 => 3,08677054052869E+24