Contains various mathematical constants.
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class Constants |
| C# |
|---|
public sealed class Constants |
| C++ |
|---|
public ref class Constants sealed |
Methods
| Icon | Type | Description |
|---|---|---|
| Equals(Object) | ||
| Finalize() | ||
| GetHashCode() | Serves as a hash function for a particular type. | |
| GetType() | Gets the Type of the current instance. | |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| ToString() |
Fields
| Icon | Type | Description |
|---|---|---|
| E |
Represents the base for the natural logarithm, e.
| |
| EulersConstant |
Represents Euler's constant.
| |
| GoldenRatio |
Represents the Golden Ratio.
| |
| InvLog10 |
Represents the base-10 logarithm of E.
| |
| Log10 |
Represents the natural logarithm of 10.
| |
| Log17 |
Represents the natural logarithm of 17.
| |
| Log2 |
Represents the natural logarithm of 2.
| |
| Log3 |
Represents the natural logarithm of 3.
| |
| LogTwoPi |
Represents the natural logarithm of two times Pi.
| |
| OneOverSqrtPi |
Represents the inverse of the square root of Pi.
| |
| OneOverSqrtTwoPi |
Represents the inverse of the square root of two times Pi.
| |
| Pi |
Represents pi, the ratio of the circumference of a cirlce
to its diameter.
| |
| PiOverFour |
Represents 0.25 times Pi.
| |
| PiOverTwo |
Represents 0.5 times Pi.
| |
| PiSquared |
Represents Pi squared.
| |
| Sqrt17 |
Represents the square root of 17.
| |
| Sqrt2 |
Represents the square root of 2.
| |
| Sqrt3 |
Represents the square root of 3.
| |
| Sqrt5 |
Represents the square root of 5.
| |
| Sqrt7 |
Represents the square root of 7.
| |
| SqrtPi |
Represents the square root of Pi.
| |
| SqrtTwoPi |
Represents the square root of two times Pi.
| |
| TwoPi |
Represents two times Pi.
|
Remarks
Some real numbers return time and again in
mathematical calculations. This class provides pre-calculated
values for many of these numbers:
- Square roots.
- Logarithms and exponentials.
- π and its variations: common multiples, square roots and integer powers.
- Various other mathematical constants with more complicated definitions.