Class MathUtil
Math static utility methods.
Inheritance
System.Object
MathUtil
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class MathUtil : object
Methods
Name |
Description |
Acosh(Double)
|
Calculates inverse hyperbolic cosine of a value.
Special cases:
- If the argument is NaN, then the result is NaN.
- If the argument is +1, then the result is a zero.
- If the argument is positive infinity, then the result is positive infinity.
- If the argument is less than 1, then the result is NaN.
|
Asinh(Double)
|
Calculates inverse hyperbolic sine of a value.
Special cases:
- If the argument is NaN, then the result is NaN.
- If the argument is zero, then the result is a zero with the same sign as the argument.
- If the argument is infinite, then the result is infinity with the same sign as the argument.
|
Atanh(Double)
|
Calculates inverse hyperbolic tangent of a value.
Special cases:
- If the argument is NaN, then the result is NaN.
- If the argument is zero, then the result is a zero with the same sign as the argument.
- If the argument is +1, then the result is positive infinity.
- If the argument is -1, then the result is negative infinity.
- If the argument's absolute value is greater than 1, then the result is NaN.
|
Gcd(Int64, Int64)
|
Return the greatest common divisor of a and b ,
consistently with System.Numerics.BigInteger.GreatestCommonDivisor(System.Numerics.BigInteger, System.Numerics.BigInteger) .
NOTE: A greatest common divisor must be positive, but
2^64 cannot be expressed as a although it
is the GCD of and 0 and the GCD of
and . So in these 2 cases,
and only them, this method will return .
|
Log(Double, Double)
|
Calculates logarithm in a given base with doubles.
|
Log(Int64, Int32)
|
Returns x <= 0 ? 0 : Math.Floor(Math.Log(x) / Math.Log(base)) .
|
Extension Methods