Class Constants
Common mathematical constants.
Inheritance
Namespace: ISynergy.Framework.Mathematics.Common
Assembly: ISynergy.Framework.Mathematics.dll
Syntax
public static class Constants : object
Remarks
References:
- Cephes Math Library, http://www.netlib.org/cephes/
- http://www.johndcook.com/cpp_expm1.html
Fields
View SourceCatalan
Catalan's constant.
Declaration
public const double Catalan = null
Field Value
Type | Description |
---|---|
System.Double |
DecimalEpsilon
Double-precision machine round-off error.
Declaration
public const decimal DecimalEpsilon = null
Field Value
Type | Description |
---|---|
System.Decimal |
Remarks
This value is actually different from Double.Epsilon. It is defined as 1.11022302462515654042E-16.
DecimalSmall
Fixed-precision small value.
Declaration
public const decimal DecimalSmall = null
Field Value
Type | Description |
---|---|
System.Decimal |
DoubleEpsilon
Double-precision machine round-off error.
Declaration
public const double DoubleEpsilon = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This value is actually different from Double.Epsilon. It is defined as 1.11022302462515654042E-16.
DoubleSmall
Double-precision small value.
Declaration
public const double DoubleSmall = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant is defined as 1.493221789605150e-300.
EulerGamma
Euler-Mascheroni constant.
Declaration
public const double EulerGamma = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant is defined as 0.5772156649015328606065120.
Log2
Log of two: log(2).
Declaration
public const double Log2 = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 0.69314718055994530941.
Log2PI
Log of twice number pi: log(2*pi).
Declaration
public const double Log2PI = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 1.837877066409345483556.
Log3
Log of three: log(3).
Declaration
public const double Log3 = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 1.098612288668109691395.
LogMax
Maximum log on the machine.
Declaration
public const double LogMax = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant is defined as 7.09782712893383996732E2.
LogMin
Minimum log on the machine.
Declaration
public const double LogMin = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant is defined as -7.451332191019412076235E2.
LogPI
Log of number pi: log(pi).
Declaration
public const double LogPI = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 1.14472988584940017414.
LogSqrt2PI
Log of square root of twice number pi: sqrt(log(2*π).
Declaration
public const double LogSqrt2PI = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 0.91893853320467274178032973640562.
SingleEpsilon
Single-precision machine round-off error.
Declaration
public const float SingleEpsilon = null
Field Value
Type | Description |
---|---|
System.Single |
Remarks
This value is actually different from Single.Epsilon. It is defined as 1.1920929E-07f.
SingleSmall
Single-precision small value.
Declaration
public const float SingleSmall = null
Field Value
Type | Description |
---|---|
System.Single |
Remarks
This constant is defined as 1.493221789605150e-40f.
Sqrt2
Square root of 2: sqrt(2).
Declaration
public const double Sqrt2 = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 1.4142135623730950488016887.
Sqrt2H
Half square root of 2: sqrt(2)/2.
Declaration
public const double Sqrt2H = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 7.07106781186547524401E-1.
Sqrt2PI
Square root of twice number pi: sqrt(2*π).
Declaration
public const double Sqrt2PI = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 2.50662827463100050242E0.
SqrtHalfPI
Square root of half number π: sqrt(π/2).
Declaration
public const double SqrtHalfPI = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 1.25331413731550025121E0.
Methods
View SourceOne<T>()
The number one (1).
Declaration
public static T One<T>()
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
Zero<T>()
The number zero (0).
Declaration
public static T Zero<T>()
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |