Uses of Class
com.upokecenter.numbers.EInteger
-
-
Uses of EInteger in com.upokecenter.numbers
Methods in com.upokecenter.numbers that return EInteger Modifier and Type Method Description EIntegerEInteger. Abs()Returns the absolute value of this object's value.EIntegerEInteger. Add(int intValue)Adds this object and another object.EIntegerEInteger. Add(EInteger bigintAugend)Adds this object and another object.EIntegerEInteger. And(EInteger other)Does an AND operation between two arbitrary-precision integer values.EIntegerEInteger. Divide(int intValue)Divides this instance by the value of an arbitrary-precision integer.EIntegerEInteger. Divide(EInteger bigintDivisor)Divides this instance by the value of an arbitrary-precision integer.EInteger[]EInteger. DivRem(EInteger divisor)Divides this object by another arbitrary-precision integer and returns the quotient and remainder.static EIntegerEInteger. FromBoolean(boolean boolValue)Converts a boolean value (true or false) to an arbitrary-precision integer.static EIntegerEInteger. FromByte(byte inputByte)Converts a byte (from 0 to 255) to an arbitrary-precision integer.static EIntegerEInteger. FromBytes(byte[] bytes, boolean littleEndian)Initializes an arbitrary-precision integer from an array of bytes.static EIntegerEInteger. FromInt16(short inputInt16)Converts a 16-bit signed integer to an arbitrary-precision integer.static EIntegerEInteger. FromInt32(int intValue)Converts a 32-bit signed integer to an arbitrary-precision integer.static EIntegerEInteger. FromInt64(long longerValue)Converts a 64-bit signed integer to an arbitrary-precision integer.static EIntegerEInteger. FromRadixString(java.lang.String str, int radix)Converts a string to an arbitrary-precision integer in a given radix.static EIntegerEInteger. FromRadixSubstring(java.lang.String str, int radix, int index, int endIndex)Converts a portion of a string to an arbitrary-precision integer in a given radix.static EIntegerEInteger. FromString(java.lang.String str)Converts a string to an arbitrary-precision integer.static EIntegerEInteger. FromSubstring(java.lang.String str, int index, int endIndex)Converts a portion of a string to an arbitrary-precision integer.EIntegerEInteger. Gcd(EInteger bigintSecond)Returns the greatest common divisor of this integer and the given integer.EIntegerERational. getDenominator()Gets this object's denominator.EIntegerEInteger. GetDigitCountAsEInteger()Returns the number of decimal digits used by this integer, in the form of an arbitrary-precision integer.EIntegerEContext. getEMax()Gets the highest exponent possible when a converted number is expressed in scientific notation with one nonzero digit before the radix point.EIntegerEContext. getEMin()Gets the lowest exponent possible when a converted number is expressed in scientific notation with one nonzero digit before the radix point.EIntegerEDecimal. getExponent()Gets this object's exponent.EIntegerEFloat. getExponent()Gets this object's exponent.EIntegerEInteger. GetLowBitAsEInteger()Gets the lowest set bit in this number's absolute value, in the form of an arbitrary-precision integer.EIntegerEDecimal. getMantissa()Gets this object's unscaled value, or mantissa, and makes it negative if this obejct is negative.EIntegerEFloat. getMantissa()Gets this object's unscaled value, or mantissa, and makes it negative if this obejct is negative.EIntegerERational. getNumerator()Gets this object's numerator.static EIntegerEInteger. getOne()Gets the number 1 as an arbitrary-precision integer.EIntegerEContext. getPrecision()Gets the maximum length of a converted number in digits, ignoring the radix point and exponent.EIntegerEInteger. GetSignedBitLengthAsEInteger()Finds the minimum number of bits needed to represent this object's value, except for its sign, in the form of an arbitrary-precision integer.static EIntegerEInteger. getTen()Gets the number 10 as an arbitrary-precision integer.EIntegerEInteger. GetUnsignedBitLengthAsEInteger()Finds the minimum number of bits needed to represent this number's absolute value.EIntegerEDecimal. getUnsignedMantissa()Gets the absolute value of this object's unscaled value, or mantissa.EIntegerEFloat. getUnsignedMantissa()Gets the absolute value of this object's unscaled value, or mantissa.EIntegerERational. getUnsignedNumerator()Gets this object's numerator with the sign removed.static EIntegerEInteger. getZero()Gets the number zero as an arbitrary-precision integer.EIntegerEInteger. Mod(int smallDivisor)Finds the modulus remainder that results when this instance is divided by the value of another integer.EIntegerEInteger. Mod(EInteger divisor)Finds the modulus remainder that results when this instance is divided by the value of an arbitrary-precision integer.EIntegerEInteger. ModPow(EInteger pow, EInteger mod)Calculates the remainder when this arbitrary-precision integer raised to a certain power is divided by another arbitrary-precision integer.EIntegerEInteger. Multiply(int intValue)Multiplies this instance by the value of an arbitrary-precision integer object.EIntegerEInteger. Multiply(EInteger bigintMult)Multiplies this instance by the value of an arbitrary-precision integer object.EIntegerEInteger. Negate()Gets the value of this object with the sign reversed.EIntegerEInteger. Not()Returns an arbitrary-precision integer with every bit flipped from this one.EIntegerEInteger. Or(EInteger second)Does an OR operation between two arbitrary-precision integer instances.EIntegerEInteger. Pow(int powerSmall)Raises an arbitrary-precision integer to a power.EIntegerEInteger. Pow(EInteger bigPower)Raises an arbitrary-precision integer to a power.EIntegerEInteger. PowBigIntVar(EInteger power)Raises an arbitrary-precision integer to a power, which is given as another arbitrary-precision integer.EIntegerEDecimal. Precision()Finds the number of digits in this number's mantissa (significand).EIntegerEFloat. Precision()Finds the number of digits in this number's mantissa (significand).EIntegerEInteger. Remainder(int intValue)Finds the remainder that results when this instance is divided by the value of an arbitrary-precision integer.EIntegerEInteger. Remainder(EInteger divisor)Finds the remainder that results when this instance is divided by the value of an arbitrary-precision integer.EIntegerEInteger. ShiftLeft(int numberBits)Returns an arbitrary-precision integer with the bits shifted to the left by a number of bits.EIntegerEInteger. ShiftLeft(EInteger eshift)Returns an arbitrary-precision integer with the bits shifted to the left by a number of bits given as an arbitrary-precision integer.EIntegerEInteger. ShiftRight(int numberBits)Returns an arbitrary-precision integer with the bits shifted to the right.EIntegerEInteger. ShiftRight(EInteger eshift)Returns an arbitrary-precision integer with the bits shifted to the right.EIntegerEInteger. Sqrt()Finds the square root of this instance's value, rounded down.EInteger[]EInteger. SqrtRem()Calculates the square root and the remainder.EIntegerEInteger. Subtract(int intValue)Subtracts an arbitrary-precision integer from this arbitrary-precision integer.EIntegerEInteger. Subtract(EInteger subtrahend)Subtracts an arbitrary-precision integer from this arbitrary-precision integer.EIntegerEDecimal. ToEInteger()Converts this value to an arbitrary-precision integer.EIntegerEFloat. ToEInteger()Converts this value to an arbitrary-precision integer.EIntegerERational. ToEInteger()Converts this value to an arbitrary-precision integer.EIntegerEDecimal. ToEIntegerExact()Deprecated.Renamed to ToEIntegerIfExact.EIntegerEFloat. ToEIntegerExact()Deprecated.Renamed to ToEIntegerIfExact.EIntegerERational. ToEIntegerExact()Deprecated.Renamed to ToEIntegerIfExact.EIntegerEDecimal. ToEIntegerIfExact()Converts this value to an arbitrary-precision integer, checking whether the fractional part of the value would be lost.EIntegerEFloat. ToEIntegerIfExact()Converts this value to an arbitrary-precision integer, checking whether the value contains a fractional part.EIntegerERational. ToEIntegerIfExact()Converts this value to an arbitrary-precision integer, checking whether the value is an exact integer.EIntegerEInteger. Xor(EInteger other)Finds the exclusive "or" of two arbitrary-precision integer objects.Methods in com.upokecenter.numbers with parameters of type EInteger Modifier and Type Method Description EIntegerEInteger. Add(EInteger bigintAugend)Adds this object and another object.EIntegerEInteger. And(EInteger other)Does an AND operation between two arbitrary-precision integer values.intEInteger. compareTo(EInteger other)Compares an arbitrary-precision integer with this instance.static EDecimalEDecimal. Create(EInteger mantissa, EInteger exponent)Creates a number with the valueexponent*10^mantissastatic EFloatEFloat. Create(EInteger mantissa, EInteger exponent)Creates a number with the value exponent*2^mantissa (significand).static ERationalERational. Create(EInteger numerator, EInteger denominator)Creates a rational number with the given numerator and denominator.static EDecimalEDecimal. CreateNaN(EInteger diag)Creates a not-a-number arbitrary-precision decimal number.static EDecimalEDecimal. CreateNaN(EInteger diag, boolean signaling, boolean negative, EContext ctx)Creates a not-a-number arbitrary-precision decimal number.static EFloatEFloat. CreateNaN(EInteger diag)Creates a not-a-number arbitrary-precision binary floating-point number.static EFloatEFloat. CreateNaN(EInteger diag, boolean signaling, boolean negative, EContext ctx)Creates a not-a-number arbitrary-precision binary floating-point number.static ERationalERational. CreateNaN(EInteger diag)Creates a not-a-number arbitrary-precision rational number.static ERationalERational. CreateNaN(EInteger diag, boolean signaling, boolean negative)Creates a not-a-number arbitrary-precision rational number.EIntegerEInteger. Divide(EInteger bigintDivisor)Divides this instance by the value of an arbitrary-precision integer.EDecimalEDecimal. DivideToExponent(EDecimal divisor, EInteger exponent)Divides two arbitrary-precision decimal numbers, and gives a particular exponent to the result, using the half-even rounding mode.EDecimalEDecimal. DivideToExponent(EDecimal divisor, EInteger exponent, EContext ctx)Divides two arbitrary-precision decimal numbers, and gives a particular exponent to the result.EDecimalEDecimal. DivideToExponent(EDecimal divisor, EInteger desiredExponent, ERounding rounding)Divides two arbitrary-precision decimal numbers, and gives a particular exponent to the result.EFloatEFloat. DivideToExponent(EFloat divisor, EInteger exponent, EContext ctx)Divides two arbitrary-precision binary floating-point numbers, and gives a particular exponent to the result.EFloatEFloat. DivideToExponent(EFloat divisor, EInteger desiredExponent, ERounding rounding)Divides two arbitrary-precision binary floating-point numbers, and gives a particular exponent to the result.EInteger[]EInteger. DivRem(EInteger divisor)Divides this object by another arbitrary-precision integer and returns the quotient and remainder.booleanEContext. ExponentWithinRange(EInteger exponent)Determines whether a number can have the given Exponent property under this arithmetic context.static EDecimalEDecimal. FromEInteger(EInteger bigint)Converts an arbitrary-precision integer to an arbitrary precision decimal.static EFloatEFloat. FromEInteger(EInteger bigint)Converts an arbitrary-precision integer to the same value as a binary float.static ERationalERational. FromEInteger(EInteger bigint)Converts an arbitrary-precision integer to a rational number.EIntegerEInteger. Gcd(EInteger bigintSecond)Returns the greatest common divisor of this integer and the given integer.booleanEInteger. GetSignedBit(EInteger bigIndex)Returns whether a bit is set in the two's-complement form (see"Forms of numbers") of this object' s value.booleanEInteger. GetUnsignedBit(EInteger bigIndex)Returns whether a bit is set in this number's absolute value.EIntegerEInteger. Mod(EInteger divisor)Finds the modulus remainder that results when this instance is divided by the value of an arbitrary-precision integer.EIntegerEInteger. ModPow(EInteger pow, EInteger mod)Calculates the remainder when this arbitrary-precision integer raised to a certain power is divided by another arbitrary-precision integer.EDecimalEDecimal. MovePointLeft(EInteger bigPlaces)Returns a number similar to this number but with the decimal point moved to the left.EDecimalEDecimal. MovePointLeft(EInteger bigPlaces, EContext ctx)Returns a number similar to this number but with the decimal point moved to the left.EFloatEFloat. MovePointLeft(EInteger bigPlaces)Returns a number similar to this number but with the radix point moved to the left.EFloatEFloat. MovePointLeft(EInteger bigPlaces, EContext ctx)Returns a number similar to this number but with the radix point moved to the left.EDecimalEDecimal. MovePointRight(EInteger bigPlaces)Returns a number similar to this number but with the decimal point moved to the right.EDecimalEDecimal. MovePointRight(EInteger bigPlaces, EContext ctx)Returns a number similar to this number but with the decimal point moved to the right.EFloatEFloat. MovePointRight(EInteger bigPlaces)Returns a number similar to this number but with the radix point moved to the right.EFloatEFloat. MovePointRight(EInteger bigPlaces, EContext ctx)Returns a number similar to this number but with the radix point moved to the right.EIntegerEInteger. Multiply(EInteger bigintMult)Multiplies this instance by the value of an arbitrary-precision integer object.EIntegerEInteger. Or(EInteger second)Does an OR operation between two arbitrary-precision integer instances.EIntegerEInteger. Pow(EInteger bigPower)Raises an arbitrary-precision integer to a power.EIntegerEInteger. PowBigIntVar(EInteger power)Raises an arbitrary-precision integer to a power, which is given as another arbitrary-precision integer.EDecimalEDecimal. Quantize(EInteger desiredExponent, EContext ctx)Returns an arbitrary-precision decimal number with the same value but a new exponent.EFloatEFloat. Quantize(EInteger desiredExponent, EContext ctx)Returns a binary float with the same value but a new exponent.EIntegerEInteger. Remainder(EInteger divisor)Finds the remainder that results when this instance is divided by the value of an arbitrary-precision integer.EDecimalEDecimal. RoundToExponent(EInteger exponent)Returns an arbitrary-precision decimal number with the same value as this object but rounded to a new exponent if necessary, using the HalfEven rounding mode.EDecimalEDecimal. RoundToExponent(EInteger exponent, EContext ctx)Returns an arbitrary-precision decimal number with the same value as this object but rounded to a new exponent if necessary.EDecimalEDecimal. RoundToExponent(EInteger exponent, ERounding rounding)Returns an arbitrary-precision decimal number with the same value as this object but rounded to a new exponent if necessary, using the given rounding mode.EFloatEFloat. RoundToExponent(EInteger exponent, EContext ctx)Returns a binary float with the same value as this object but rounded to a new exponent if necessary.EDecimalEDecimal. RoundToExponentExact(EInteger exponent, EContext ctx)Returns an arbitrary-precision decimal number with the same value as this object but rounded to the given exponent represented as an arbitrary-precision integer, and signals an inexact flag if the result would be inexact.EFloatEFloat. RoundToExponentExact(EInteger exponent, EContext ctx)Returns a binary float with the same value as this object but rounded to the given exponent, and signals an inexact flag if the result would be inexact.EFloatEFloat. RoundToExponentExact(EInteger exponent, ERounding rounding)Returns a binary number with the same value as this object but rounded to the given exponent.EDecimalEDecimal. ScaleByPowerOfTen(EInteger bigPlaces)Returns a number similar to this number but with the scale adjusted.EDecimalEDecimal. ScaleByPowerOfTen(EInteger bigPlaces, EContext ctx)Returns a number similar to this number but with its scale adjusted.EFloatEFloat. ScaleByPowerOfTwo(EInteger bigPlaces)Returns a number similar to this number but with the scale adjusted.EFloatEFloat. ScaleByPowerOfTwo(EInteger bigPlaces, EContext ctx)Returns a number similar to this number but with its scale adjusted.EIntegerEInteger. ShiftLeft(EInteger eshift)Returns an arbitrary-precision integer with the bits shifted to the left by a number of bits given as an arbitrary-precision integer.EIntegerEInteger. ShiftRight(EInteger eshift)Returns an arbitrary-precision integer with the bits shifted to the right.EIntegerEInteger. Subtract(EInteger subtrahend)Subtracts an arbitrary-precision integer from this arbitrary-precision integer.EContextEContext. WithBigExponentRange(EInteger exponentMin, EInteger exponentMax)Copies this arithmetic context and sets the copy's exponent range.EContextEContext. WithBigPrecision(EInteger bigintPrecision)Copies this EContext and gives it a particular precision value.EIntegerEInteger. Xor(EInteger other)Finds the exclusive "or" of two arbitrary-precision integer objects.Constructors in com.upokecenter.numbers with parameters of type EInteger Constructor Description EContext(EInteger bigintPrecision, ERounding rounding, EInteger exponentMin, EInteger exponentMax, boolean clampNormalExponents)Initializes a new instance of theEContextclass, using arbitrary-precision integers to hold the precision and exponent range.ERational(EInteger numerator, EInteger denominator)Initializes a new instance of theERationalclass.
-