Parameters
int number
The number of which to find the closest upper power of two.
Return
int
A power of two.
Type Euclid
Namespace MathNet.Numerics
int numberThe number of which to find the closest upper power of two.
intA power of two.
long numberThe number of which to find the closest upper power of two.
longA power of two.
gcd ) of a set of big integers.
BigInteger[] integersList of Integers.
BigIntegerGreatest common divisor gcd (list of integers)
gcd ) of two big integers.
BigInteger aFirst Integer: a.
BigInteger bSecond Integer: b.
BigIntegerGreatest common divisor gcd (a,b)
gcd ) of two integers using Euclid's algorithm.
long aFirst Integer: a.
long bSecond Integer: b.
longGreatest common divisor gcd (a,b)
gcd ) of a set of integers using Euclid's
algorithm.
IList<long> integersList of Integers.
longGreatest common divisor gcd (list of integers)
gcd ) of a set of integers using Euclid's algorithm.
Int64[] integersList of Integers.
longGreatest common divisor gcd (list of integers)
int numberThe number to very whether it's even.
boolTrue if and only if it is an even number.
long numberThe number to very whether it's even.
boolTrue if and only if it is an even number.
int numberThe number to very whether it's odd.
boolTrue if and only if it is an odd number.
long numberThe number to very whether it's odd.
boolTrue if and only if it is an odd number.
int numberThe number to very whether it's a perfect square.
boolTrue if and only if it is a perfect square.
long numberThe number to very whether it's a perfect square.
boolTrue if and only if it is a perfect square.
long numberThe number to very whether it's a power of two.
boolTrue if and only if it is a power of two.
int numberThe number to very whether it's a power of two.
boolTrue if and only if it is a power of two.
lcm ) of two big integers.
BigInteger aFirst Integer: a.
BigInteger bSecond Integer: b.
BigIntegerLeast common multiple lcm (a,b)
lcm ) of a set of big integers.
BigInteger[] integersList of Integers.
BigIntegerLeast common multiple lcm (list of integers)
lcm ) of two integers using Euclid's algorithm.
long aFirst Integer: a.
long bSecond Integer: b.
longLeast common multiple lcm (a,b)
lcm ) of a set of integers using Euclid's algorithm.
IList<long> integersList of Integers.
longLeast common multiple lcm (list of integers)
lcm ) of a set of integers using Euclid's algorithm.
Int64[] integersList of Integers.
longLeast common multiple lcm (list of integers)
Two-step method using a De Bruijn-like sequence table lookup.
long exponentThe exponent to raise 2 up to.
long2 ^ exponent.
int exponentThe exponent to raise 2 up to.
int2 ^ exponent.