IMathTNumeric Interface

Provides methods for trigonometric, logarithmic, and other common mathematical functions.

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public interface IMath<TNumeric>

Type Parameters

TNumeric
The type of number supported for mathematical functions.

Properties

E Represents the natural logarithmic base, specified by the constant, e. If TNumeric is integral, this value is rounded to 2.
PI Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π. If TNumeric is integral, this value is rounded to 3.
Tau Two times the value of PI.

Methods

Abs Returns the absolute value of a number.
Acos Returns the angle whose cosine is the specified number.
Acosh Returns the angle whose hyperbolic cosine is the specified number.
Asin Returns the angle whose sine is the specified number.
Asinh Returns the angle whose hyperbolic sine is the specified number.
Atan Returns the angle whose tangent is the specified number.
Atan2 Returns the angle whose tangent is the quotient of two specified numbers.
Atanh Returns the angle whose hyperbolic tangent is the specified number.
CbrtReturns the cube root of a specified number.
CeilingReturns the smallest integral value that is greater than or equal to the specified number.
ClampReturns value clamped to the inclusive range of bound1 and bound2.
CosReturns the cosine of the specified angle.
CoshReturns the hyperbolic cosine of the specified angle.
ExpReturns e raised to the specified power.
FloorReturns the largest integral value less than or equal to the specified number.
IEEERemainderReturns the remainder resulting from the division of a specified number by another specified number.
Log(TNumeric)Returns the natural (base e) logarithm of a specified number.
Log(TNumeric, TNumeric)Returns the logarithm of a specified number in a specified base.
Log10Returns the base 10 logarithm of a specified number.
MaxReturns the larger of two numbers.
MinReturns the smaller of two numbers.
PowReturns a specified number raised to the specified power.
Round(TNumeric)Rounds a value to the nearest integral value, and rounds midpoint values to the nearest even number.
Round(TNumeric, Int32)Rounds a value to a specified number of fractional digits, and rounds midpoint values to the nearest even number.
Round(TNumeric, MidpointRounding)Rounds a value an integer using the specified rounding convention.
Round(TNumeric, Int32, MidpointRounding)Rounds a value to a specified number of fractional digits using the specified rounding convention.
Sign Returns an integer that indicates the sign of a number.
SinReturns the sine of the specified angle.
SinhReturns the hyperbolic sine of the specified angle.
SqrtReturns the square root of a specified number.
TanReturns the tangent of the specified angle.
TanhReturns the hyperbolic tangent of the specified angle.
TruncateCalculates the integral part of a specified number.

See Also