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.
int
A power of two.
long
numberThe number of which to find the closest upper power of two.
long
A power of two.
gcd
) of a set of big integers.
BigInteger[]
integersList of Integers.
BigInteger
Greatest common divisor gcd
(list of integers)
gcd
) of two big integers.
BigInteger
aFirst Integer: a.
BigInteger
bSecond Integer: b.
BigInteger
Greatest common divisor gcd
(a,b)
gcd
) of two integers using Euclid's algorithm.
long
aFirst Integer: a.
long
bSecond Integer: b.
long
Greatest common divisor gcd
(a,b)
gcd
) of a set of integers using Euclid's
algorithm.
IList<long>
integersList of Integers.
long
Greatest common divisor gcd
(list of integers)
gcd
) of a set of integers using Euclid's algorithm.
Int64[]
integersList of Integers.
long
Greatest common divisor gcd
(list of integers)
int
numberThe number to very whether it's even.
bool
True if and only if it is an even number.
long
numberThe number to very whether it's even.
bool
True if and only if it is an even number.
int
numberThe number to very whether it's odd.
bool
True if and only if it is an odd number.
long
numberThe number to very whether it's odd.
bool
True if and only if it is an odd number.
int
numberThe number to very whether it's a perfect square.
bool
True if and only if it is a perfect square.
long
numberThe number to very whether it's a perfect square.
bool
True if and only if it is a perfect square.
long
numberThe number to very whether it's a power of two.
bool
True if and only if it is a power of two.
int
numberThe number to very whether it's a power of two.
bool
True if and only if it is a power of two.
lcm
) of two big integers.
BigInteger
aFirst Integer: a.
BigInteger
bSecond Integer: b.
BigInteger
Least common multiple lcm
(a,b)
lcm
) of a set of big integers.
BigInteger[]
integersList of Integers.
BigInteger
Least common multiple lcm
(list of integers)
lcm
) of two integers using Euclid's algorithm.
long
aFirst Integer: a.
long
bSecond Integer: b.
long
Least common multiple lcm
(a,b)
lcm
) of a set of integers using Euclid's algorithm.
IList<long>
integersList of Integers.
long
Least common multiple lcm
(list of integers)
lcm
) of a set of integers using Euclid's algorithm.
Int64[]
integersList of Integers.
long
Least 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.
long
2 ^ exponent.
int
exponentThe exponent to raise 2 up to.
int
2 ^ exponent.