Class Constants
This class provides common known mathematical constants.
Inheritance
System.Object
Constants
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Numerics
Assembly: Mars.Numerics.dll
Syntax
public static class Constants
Fields
| Improve this Doc View SourceDoubleSmall
Double-precision small value.
Declaration
public const double DoubleSmall = 1.49322178960515E-300
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant is defined as 1.493221789605150e-300.
|
Improve this Doc
View Source
OneOverPi
Represents one divided by the mathematical constant π.
Declaration
public const double OneOverPi = 0.3183098861837907
Field Value
Type | Description |
---|---|
System.Double |
OneOverPiF
Represents one divided by the mathematical constant π.
Declaration
public const float OneOverPiF = 0.31830987F
Field Value
Type | Description |
---|---|
System.Single |
Pi
Represents the mathematical constant π.
Declaration
public const double Pi = 3.141592653589793
Field Value
Type | Description |
---|---|
System.Double |
PiF
Represents the mathematical constant π.
Declaration
public const float PiF = 3.1415927F
Field Value
Type | Description |
---|---|
System.Single |
Sqrt2
This class provides common known mathematical constants.
Declaration
public const double Sqrt2 = 1.4142135623730951
Field Value
Type | Description |
---|---|
System.Double |
Remarks
This constant has the value 1.4142135623730950488016887.
|
Improve this Doc
View Source
TwoPiF
Represents the mathematical constant π times two.
Declaration
public const float TwoPiF = 6.2831855F
Field Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc 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 |