IMathTNumeric Interface
Provides methods for trigonometric, logarithmic, and other common mathematical functions.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public interface IMath<TNumeric>
Public Interface IMath(Of TNumeric)
generic<typename TNumeric>
public interface class IMath
type IMath<'TNumeric> = interface end
Type Parameters
- TNumeric
- The type of number supported for mathematical functions.
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.
|
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.
|
Cbrt | Returns the cube root of a specified number. |
Ceiling | Returns the smallest integral value that is greater than or equal to the specified number. |
Clamp | Returns value clamped to the inclusive range of bound1 and bound2. |
Cos | Returns the cosine of the specified angle. |
Cosh | Returns the hyperbolic cosine of the specified angle. |
Exp | Returns e raised to the specified power. |
Floor | Returns the largest integral value less than or equal to the specified number. |
IEEERemainder | Returns 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. |
Log10 | Returns the base 10 logarithm of a specified number. |
Max | Returns the larger of two numbers. |
Min | Returns the smaller of two numbers. |
Pow | Returns 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.
|
Sin | Returns the sine of the specified angle. |
Sinh | Returns the hyperbolic sine of the specified angle. |
Sqrt | Returns the square root of a specified number. |
Tan | Returns the tangent of the specified angle. |
Tanh | Returns the hyperbolic tangent of the specified angle. |
Truncate | Calculates the integral part of a specified number. |