Generated by DocFX

Class Constants

Common mathematical constants.

Inheritance
System.Object
Constants
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 Source

Catalan

Catalan's constant.

Declaration
public const double Catalan = null
Field Value
Type Description
System.Double
View Source

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.

View Source

DecimalSmall

Fixed-precision small value.

Declaration
public const decimal DecimalSmall = null
Field Value
Type Description
System.Decimal
View Source

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.

View Source

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.

View Source

EulerGamma

Euler-Mascheroni constant.

Declaration
public const double EulerGamma = null
Field Value
Type Description
System.Double
Remarks

This constant is defined as 0.5772156649015328606065120.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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 Source

One<T>()

The number one (1).

Declaration
public static T One<T>()
Returns
Type Description
T
Type Parameters
Name Description
T
View Source

Zero<T>()

The number zero (0).

Declaration
public static T Zero<T>()
Returns
Type Description
T
Type Parameters
Name Description
T