IntegerMath Class

Contains methods that perform operations on integers.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static class IntegerMath
Inheritance
Object  →  IntegerMath

Methods

BinomialCoefficients Enumerates over the binomial coefficients of a specified degree.
Divisors(Int32) Returns the divisors of an integer.
Divisors(Int64) Returns the divisors of an integer.
Factor(Int32) Returns the prime factors of an integer.
Factor(Int64) Returns the prime factors of an integer.
Factorize(Int32) Returns the prime factors of an integer.
Obsolete.
Factorize(Int64) Returns the prime factors of a long (64-bit) integer.
Obsolete.
GreatestCommonDivisor(BigInteger, BigInteger) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(Decimal, Decimal) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(Int16, Int16) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(Int32, Int32) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(Int64, Int64) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(BigInteger, BigInteger, BigInteger, BigInteger) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
GreatestCommonDivisor(Decimal, Decimal, Decimal, Decimal) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
GreatestCommonDivisor(Int16, Int16, Int16, Int16) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
GreatestCommonDivisor(Int32, Int32, Int32, Int32) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
GreatestCommonDivisor(Int64, Int64, Int64, Int64) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
IsEven(BigInteger) Returns a value indicating whether an integer is even.
IsEven(Decimal) Returns a value indicating whether an integer is even.
IsEven(Int16) Returns a value indicating whether an integer is even.
IsEven(Int32) Returns a value indicating whether an integer is even.
IsEven(Int64) Returns a value indicating whether an integer is even.
IsOdd(BigInteger) Returns a value indicating whether an integer is odd.
IsOdd(Decimal) Returns a value indicating whether an integer is odd.
IsOdd(Int16) Returns a value indicating whether an integer is odd.
IsOdd(Int32) Returns a value indicating whether an integer is odd.
IsOdd(Int64) Returns a value indicating whether an integer is odd.
IsPrime(Int16) Returns a value indicating whether an integer is a prime number.
IsPrime(Int32) Returns a value indicating whether an integer is a prime number.
LeastCommonMultiple(BigInteger, BigInteger) Returns the least common multiple of two integers.
LeastCommonMultiple(Decimal, Decimal) Returns the least common multiple of two integers.
LeastCommonMultiple(Int16, Int16) Returns the least common multiple of two integers.
LeastCommonMultiple(Int32, Int32) Returns the least common multiple of two integers.
LeastCommonMultiple(Int64, Int64) Returns the least common multiple of two integers.
MinusOnePow Returns -1 raised to the specified power.
NextPrime Returns the first prime number following the given number.
PreviousPrime Returns the first prime number preceding the given number.
Primes() Enumerates all prime numbers less than MaxValue.
Primes(Int32) Enumerates all prime numbers less than the specified value..

See Also