public interface IInteger extends IRational
| Modifier and Type | Field and Description |
|---|---|
static int |
PRIME_CERTAINTY
Certainty for the isProbablePrime() method
|
ASTID, BLANKID, COMPLEXID, DOUBLECOMPLEXID, DOUBLEID, FRACTIONID, INTEGERID, METHODSYMBOLID, PATTERNID, STRINGID, SYMBOLID| Modifier and Type | Method and Description |
|---|---|
IInteger |
add(IInteger val) |
IInteger |
div(IInteger that) |
IInteger[] |
divideAndRemainder(IInteger that)
Returns an array of two IIntegers containing (this / that) followed by
(this % that).
|
IAST |
divisors() |
IInteger |
eabs()
Get the absolute value for a given number
|
IInteger |
eulerPhi() |
IExpr |
exponent(IInteger base)
Get the highest exponent of
base that divides
this |
IInteger |
gcd(IInteger val)
Returns the greatest common divisor of this large integer and the one
specified.
|
java.math.BigInteger |
getBigNumerator()
Returns the numerator of this Rational.
|
int |
intValue()
Converts this large integer to
int; unlike ISignedNumber.toInt()
this method raises no exception, if this integer cannot be represented by
an int type. |
boolean |
isEven() |
boolean |
isOdd() |
boolean |
isProbablePrime() |
boolean |
isProbablePrime(int certainty) |
IInteger |
jacobiSymbol(IInteger b) |
IInteger |
jacobiSymbolF() |
IInteger |
jacobiSymbolG(IInteger b) |
IInteger |
lcm(IInteger val)
Returns the least common multiple of this large integer and the one
specified.
|
long |
longValue() |
IInteger |
mod(IInteger that) |
IInteger |
modInverse(IInteger m) |
IInteger |
modPow(IInteger exp,
IInteger m) |
IInteger |
moebiusMu() |
IInteger |
multiply(IInteger value)
Multiply this integer with value
|
IInteger |
negate()
Returns an
IInteger whose value is (-1) * this. |
IInteger |
nthRoot(int n)
Returns the n-th integer root
|
IInteger[] |
nthRootSplit(int n)
Split this integer into the nth-root (with prime factors less equal 1021)
and the "rest factor"
|
IInteger |
pow(long exp)
Returns this number raised at the specified exponent.
|
IInteger[] |
primitiveRoots() |
IInteger |
quotient(IInteger that) |
IInteger |
shiftLeft(int n) |
IInteger |
shiftRight(int n) |
IInteger |
subtract(IInteger value) |
byte[] |
toByteArray() |
abs, add, ceil, compareInt, divideBy, equalsFraction, factorInteger, floor, getBigDenominator, getDenominator, getFraction, getNumerator, multiply, normalize, subtractapfloatNumValue, divideBy, doubleValue, inverse, isGreaterThan, isLessThan, isNegative, isPositive, isZero, numValue, opposite, round, sign, subtractFrom, toInt, toLongnumericNumberapcomplexNumValue, ceilFraction, compareAbsValueToOne, complexNumValue, complexSign, conjugate, equalsInt, floorFraction, getIm, getImaginary, getRe, getReal$div, $minus, $plus, $times, $up, accept, accept, accept, accept, and, apply, apply, asType, compareTo, dec, divide, evalComplex, evalDouble, evalNumber, evalSignedNumber, evaluate, evaluateHead, fullFormString, getAt, getField, head, hierarchy, ifPresent, inc, internalFormString, internalJavaString, internalScalaString, isAllExpanded, isAnd, isArcCos, isArcCosh, isArcSin, isArcSinh, isArcTan, isArcTanh, isAST, isAST, isAST, isAST, isAST, isAST, isAST, isASTSizeGE, isAtom, isBlank, isComplex, isComplexInfinity, isComplexNumeric, isCondition, isConstant, isCos, isCosh, isDerivative, isDirectedInfinity, isE, isExpanded, isFalse, isFlatAST, isFraction, isFree, isFree, isFree, isFreeAST, isFreeAST, isFreeOfPatterns, isFunction, isGEOrdered, isGTOrdered, isIndeterminate, isInfinity, isInteger, isIntegerResult, isLEOrdered, isList, isListOfLists, isLog, isLTOrdered, isMatrix, isMember, isMember, isMinusOne, isModule, isNegativeInfinity, isNegativeResult, isNonNegativeResult, isNot, isNumber, isNumEqualInteger, isNumEqualRational, isNumeric, isNumericFunction, isNumericMode, isNumIntValue, isOne, isONE, isOr, isOrderlessAST, isPattern, isPatternDefault, isPatternExpr, isPatternSequence, isPi, isPlus, isPlusTimesPower, isPolynomial, isPolynomial, isPolynomialOfMaxDegree, isPositiveResult, isPower, isPresent, isRational, isRationalResult, isRationalValue, isRealResult, isRuleAST, isSame, isSame, isSequence, isSignedNumber, isSin, isSinh, isSlot, isSlotSequence, isSpan, isSymbol, isTan, isTanh, isTimes, isTrue, isUnit, isValue, isVariable, isVector, isZERO, leafCount, leaves, minus, mod, multiply, multiply, negative, ofNullable, optional, or, orElse, orElseGet, orElseThrow, plus, power, power, reciprocal, replaceAll, replaceAll, replacePart, replaceRepeated, replaceRepeated, replaceSlots, signum, subtract, sum, times, timesDistributed, topHead, variables2Slotsstatic final int PRIME_CERTAINTY
IInteger[] divideAndRemainder(IInteger that)
that - IAST divisors()
IInteger eabs()
INumberIInteger eulerPhi() throws java.lang.ArithmeticException
java.lang.ArithmeticExceptionIExpr exponent(IInteger base)
base that divides
thisbase - an integer greater than 1IInteger gcd(IInteger val)
java.math.BigInteger getBigNumerator()
getBigNumerator in interface IRationalint intValue()
int; unlike ISignedNumber.toInt()
this method raises no exception, if this integer cannot be represented by
an int type.int.boolean isEven()
boolean isOdd()
boolean isProbablePrime()
boolean isProbablePrime(int certainty)
IInteger jacobiSymbolF()
IInteger lcm(IInteger val)
long longValue()
IInteger moebiusMu()
IInteger multiply(IInteger value)
value - IInteger negate()
IInteger whose value is (-1) * this.IInteger nthRoot(int n) throws java.lang.ArithmeticException
n - java.lang.ArithmeticExceptionIInteger[] nthRootSplit(int n)
{nth-root, rest factor}IInteger pow(long exp) throws java.lang.ArithmeticException
IRationalIInteger[] primitiveRoots() throws java.lang.ArithmeticException
java.lang.ArithmeticExceptionIInteger shiftLeft(int n)
IInteger shiftRight(int n)
byte[] toByteArray()