using System; using L=Science.Mathematics.SpecialFunction; namespace ScienceTest.MathematicsTest.SpecialFunctionTest { /// /// GammaFunctionTest /// public class GammaRelatedTest { public GammaRelatedTest() { } private string result; public string Result { get{return result;} } public void Compute() { result = Convert.ToString(L.GammaRelated.LogGamma(3.0))+"\r\n"; result += Convert.ToString(L.GammaRelated.Gamma(3.0))+"\r\n"; result += Convert.ToString(L.GammaRelated.Factorial1(3))+"\r\n"; result += Convert.ToString(L.GammaRelated.Binomial(7,4))+"\r\n"; result += Convert.ToString(L.GammaRelated.Beta(7.0,4.3))+"\r\n"; result += Convert.ToString(L.GammaRelated.GammaRegularized(7.0,4.3))+"\r\n"; result += Convert.ToString(L.GammaRelated.Factorial2(8))+"\r\n"; result += Convert.ToString(L.GammaRelated.Error(-0.5))+"\r\n"; result += Convert.ToString(L.GammaRelated.ErrorComplementary(-0.5))+"\r\n"; result += Convert.ToString(L.GammaRelated.ExponentialIntegral(1,0.5))+"\r\n"; result += Convert.ToString(L.GammaRelated.ExponentialIntegralPrincipalValue(0.2725))+"\r\n"; result += Convert.ToString(L.GammaRelated.BetaRegularized(2,3,0.6))+"\r\n"; } } } /* 0.693147180559944 2 6 35 0.000864025372736976 0.85578999125193 384 -0.520499876068384 1.52049987606838 0.559773594205502 -0.430652745645033 0.8208 */