Class Constants
This class provides common known mathematical constants.
Inheritance
System.Object
Constants
Namespace: Mars.Numerics
Assembly: Mars.Numerics.dll
Syntax
public static class Constants : object
Fields
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.
OneOverPi
Represents one divided by the mathematical constant π.
Declaration
public const double OneOverPi = null
Field Value
Type | Description |
---|---|
System.Double |
OneOverPiF
Represents one divided by the mathematical constant π.
Declaration
public const float OneOverPiF = null
Field Value
Type | Description |
---|---|
System.Single |
Pi
Represents the mathematical constant π.
Declaration
public const double Pi = null
Field Value
Type | Description |
---|---|
System.Double |
PiF
Represents the mathematical constant π.
Declaration
public const float PiF = null
Field Value
Type | Description |
---|---|
System.Single |
Sqrt2
Declaration
public const double Sqrt2 = null
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 1.4142135623730950488016887.
TwoPiF
Represents the mathematical constant π times two.
Declaration
public const float TwoPiF = null
Field Value
Type | Description |
---|---|
System.Single |
Methods
One<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 |