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

IconTypeDescription
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
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()
Returns a String that represents the current Object.

Fields

IconTypeDescription
static memberE
Represents the base for the natural logarithm, e.
static memberEulersConstant
Represents Euler's constant.
static memberGoldenRatio
Represents the Golden Ratio.
static memberInvLog10
Represents the base-10 logarithm of E.
static memberLog10
Represents the natural logarithm of 10.
static memberLog17
Represents the natural logarithm of 17.
static memberLog2
Represents the natural logarithm of 2.
static memberLog3
Represents the natural logarithm of 3.
static memberLogTwoPi
Represents the natural logarithm of two times Pi.
static memberOneOverSqrtPi
Represents the inverse of the square root of Pi.
static memberOneOverSqrtTwoPi
Represents the inverse of the square root of two times Pi.
static memberPi
Represents pi, the ratio of the circumference of a cirlce to its diameter.
static memberPiOverFour
Represents 0.25 times Pi.
static memberPiOverTwo
Represents 0.5 times Pi.
static memberPiSquared
Represents Pi squared.
static memberSqrt17
Represents the square root of 17.
static memberSqrt2
Represents the square root of 2.
static memberSqrt3
Represents the square root of 3.
static memberSqrt5
Represents the square root of 5.
static memberSqrt7
Represents the square root of 7.
static memberSqrtPi
Represents the square root of Pi.
static memberSqrtTwoPi
Represents the square root of two times Pi.
static memberTwoPi
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.

Inheritance Hierarchy

System.Object
  Extreme.Mathematics.Constants