using System; using System.Runtime.InteropServices; namespace Cabinink.Algorithm { /// /// 常用的数学常量密封类。 /// [Serializable] [ComVisible(true)] public sealed class MathConstant { /// /// 圆周率。 /// public static double CircumferenceRatio => 3.141592653589793238462643383; /// /// 自然常数。 /// public static double UniversalConstant => 2.71828188284591; /// /// 欧拉常数。 /// public static double EulerMascheroniConstant => 0.577215664901533; /// /// 费根鲍姆常数。 /// public static double FeigenbaumConstant => 4.66920160910299; /// /// 黄金分割数。 /// public static double GoldenSectionNumber => 0.618033988749895; /// /// 卡特兰数。 /// public static double CatalanNumber => 0.915965594177219; /// /// 卡钦常数。 /// public static double KhinchinConstant => 2.68545200106531; /// /// 孪生质数常数。 /// public static double TwinPrimeConstant => 0.66016181584687; /// /// 毕达哥拉斯常数。 /// public static double PythagorasConstant => 1.4142135623731; /// /// Meissel-Mertens常数。 /// public static double MeisselMertensConstant => 0.261497212847643; /// /// 塑胶数。 /// public static double PlasticNumber => 1.32471795724475; /// /// 兰道-拉马努金常数。 /// public static double LandauRamanujanConstant => 0.764223653589221; /// /// 黄金分割常数。 /// public static double GoldenSplitConstant => 0.61803398874989484; /// /// 康威常数。 /// public static double ConwayConstant => 1.303577269; /// /// Champernowne常数。 /// public static double ChampernowneConstant => 0.1234567891011121; } }