using System; namespace Science.Mathematics { /// /// Constant contains several constant value. /// public class Constant { public Constant() { } public static double E { get{return Math.E;} } public static double Pi { get{return Math.PI;} } public static Complex I { get{Complex i = new Complex(0.0,1.0);return i;} } public static double GoldenRatio { get{return (1.0+Math.Sqrt(5.0))/2.0;} } public static double EulerGamma { get{return 0.577215664901533;} } public static double Catalan { get{return 0.915965594177219;} } public static double Khinchin { get{return 2.68545200106531;} } public static double Glaisher { get{return 1.28242712910062;} } } }