Click or drag to resize

Euclid Class

Integer number theory functions.
Inheritance Hierarchy
SystemObject
  Altaxo.CalcEuclid

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class Euclid

The Euclid type exposes the following members.

Methods
 NameDescription
Public Extension MethodCeilingToPowerOfTwo(Int32) Find the closest perfect power of two that is larger or equal to the provided 32 bit integer.
Public Extension MethodCeilingToPowerOfTwo(Int64) Find the closest perfect power of two that is larger or equal to the provided 64 bit integer.
Public methodStatic memberCode exampleExtendedGreatestCommonDivisor(BigInteger, BigInteger, BigInteger, BigInteger) Computes the extended greatest common divisor, such that a*x + b*y = gcd(a,b).
Public methodStatic memberCode exampleExtendedGreatestCommonDivisor(Int64, Int64, Int64, Int64) Computes the extended greatest common divisor, such that a*x + b*y = gcd(a,b).
Public methodStatic memberGreatestCommonDivisor(BigInteger) Returns the greatest common divisor (gcd) of a set of big integers.
Public methodStatic memberGreatestCommonDivisor(IListInt64) Returns the greatest common divisor (gcd) of a set of integers using Euclid's algorithm.
Public methodStatic memberGreatestCommonDivisor(IListBigInteger) Returns the greatest common divisor (gcd) of a set of big integers.
Public methodStatic memberGreatestCommonDivisor(Int64) Returns the greatest common divisor (gcd) of a set of integers using Euclid's algorithm.
Public methodStatic memberGreatestCommonDivisor(BigInteger, BigInteger) Returns the greatest common divisor (gcd) of two big integers.
Public methodStatic memberGreatestCommonDivisor(Int64, Int64) Returns the greatest common divisor (gcd) of two integers using Euclid's algorithm.
Public Extension MethodIsEven(Int32) Find out whether the provided 32 bit integer is an even number.
Public Extension MethodIsEven(Int64) Find out whether the provided 64 bit integer is an even number.
Public Extension MethodIsOdd(Int32) Find out whether the provided 32 bit integer is an odd number.
Public Extension MethodIsOdd(Int64) Find out whether the provided 64 bit integer is an odd number.
Public Extension MethodIsPerfectSquare(Int32) Find out whether the provided 32 bit integer is a perfect square, i.e. a square of an integer.
Public Extension MethodIsPerfectSquare(Int64) Find out whether the provided 64 bit integer is a perfect square, i.e. a square of an integer.
Public Extension MethodIsPowerOfTwo(Int32) Find out whether the provided 32 bit integer is a perfect power of two.
Public Extension MethodIsPowerOfTwo(Int64) Find out whether the provided 64 bit integer is a perfect power of two.
Public methodStatic memberLeastCommonMultiple(BigInteger) Returns the least common multiple (lcm) of a set of big integers.
Public methodStatic memberLeastCommonMultiple(IListInt64) Returns the least common multiple (lcm) of a set of integers using Euclid's algorithm.
Public methodStatic memberLeastCommonMultiple(IListBigInteger) Returns the least common multiple (lcm) of a set of big integers.
Public methodStatic memberLeastCommonMultiple(Int64) Returns the least common multiple (lcm) of a set of integers using Euclid's algorithm.
Public methodStatic memberLeastCommonMultiple(BigInteger, BigInteger) Returns the least common multiple (lcm) of two big integers.
Public methodStatic memberLeastCommonMultiple(Int64, Int64) Returns the least common multiple (lcm) of two integers using Euclid's algorithm.
Public Extension MethodLog2 Evaluate the binary logarithm of an integer number.
Public methodStatic memberModulus(BigInteger, BigInteger) Canonical Modulus. The result has the sign of the divisor.
Public methodStatic memberModulus(Double, Double) Canonical Modulus. The result has the sign of the divisor.
Public methodStatic memberModulus(Int32, Int32) Canonical Modulus. The result has the sign of the divisor.
Public methodStatic memberModulus(Int64, Int64) Canonical Modulus. The result has the sign of the divisor.
Public methodStatic memberModulus(Single, Single) Canonical Modulus. The result has the sign of the divisor.
Public Extension MethodPowerOfTwo(Int32) Raises 2 to the provided integer exponent (0 <= exponent < 31).
Public Extension MethodPowerOfTwo(Int64) Raises 2 to the provided integer exponent (0 <= exponent < 63).
Public methodStatic memberRemainder(BigInteger, BigInteger) Remainder (% operator). The result has the sign of the dividend.
Public methodStatic memberRemainder(Double, Double) Remainder (% operator). The result has the sign of the dividend.
Public methodStatic memberRemainder(Int32, Int32) Remainder (% operator). The result has the sign of the dividend.
Public methodStatic memberRemainder(Int64, Int64) Remainder (% operator). The result has the sign of the dividend.
Public methodStatic memberRemainder(Single, Single) Remainder (% operator). The result has the sign of the dividend.
Top
See Also