org.matheclipse.core.interfaces
Interface IInteger
-
- All Superinterfaces:
- AbelianGroupElem<IExpr>, java.lang.Comparable<IExpr>, Element<IExpr>, IBigNumber, IExpr, INumber, IRational, ISignedNumber, MonoidElem<IExpr>, RingElem<IExpr>, java.io.Serializable
- All Known Implementing Classes:
- IntegerSym
public interface IInteger extends IRational
An expression representing a big integer number
-
-
Field Summary
-
Fields inherited from interface org.matheclipse.core.interfaces.IExpr
ASTID, COMPLEXID, DOUBLECOMPLEXID, DOUBLEID, FRACTIONID, INTEGERID, METHODSYMBOLID, PATTERNID, STRINGID, SYMBOLID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description IIntegeradd(IInteger val)IIntegergcd(IInteger val)Returns the greatest common divisor of this large integer and the one specified.java.math.BigIntegergetBigNumerator()Returns the numerator of this Rational.intintValue()Converts this large integer toint; unlikeISignedNumber.toInt()this method raises no exception, if this integer cannot be represented by aninttype.booleanisEven()booleanisOdd()IIntegerlcm(IInteger val)Returns the least common multiple of this large integer and the one specified.longlongValue()IIntegermultiply(IInteger value)Multiply this integer with valueIIntegernthRoot(int n)Returns the n-th integer rootIInteger[]nthRootSplit(int n)Split this integer into the nth-root (with prime factors less equal 1021) and the "rest factor"IIntegerpow(int exponent)IIntegersubtract(IInteger value)-
Methods inherited from interface org.matheclipse.core.interfaces.IRational
getDenominator, getFraction, getNumerator
-
Methods inherited from interface org.matheclipse.core.interfaces.ISignedNumber
ceil, divideBy, doubleValue, floor, inverse, isGreaterThan, isLessThan, isNegative, isPositive, isZero, negate, opposite, round, sign, subtractFrom, toInt, toLong
-
Methods inherited from interface org.matheclipse.core.interfaces.IBigNumber
numericNumber
-
Methods inherited from interface org.matheclipse.core.interfaces.INumber
complexSign, eabs, equalsInt, getIm, getRe
-
Methods inherited from interface org.matheclipse.core.interfaces.IExpr
accept, accept, accept, and, apply, apply, asType, compareTo, evaluate, fullFormString, getAt, head, hierarchy, internalFormString, isAnd, isArcCos, isArcCosh, isArcSin, isArcSinh, isArcTan, isArcTanh, isAST, isAST, isAST, isAST, isAST, isAST, isASTSizeGE, isAtom, isComplex, isComplexInfinity, isComplexNumeric, isCondition, isConstant, isCos, isCosh, isDirectedInfinity, isFalse, isFlatAST, isFraction, isFree, isFree, isFunction, isGEOrdered, isGTOrdered, isInfinity, isInteger, isLEOrdered, isList, isListOfLists, isLog, isLTOrdered, isMatrix, isMember, isMember, isMinusOne, isModule, isNegativeInfinity, isNot, isNumber, isNumEqualInteger, isNumeric, isNumericFunction, isNumIntValue, isOne, isOr, isOrderlessAST, isPattern, isPatternExpr, isPatternSequence, isPlus, isPower, isRational, isRealFunction, isRuleAST, isSame, isSame, isSequence, isSignedNumber, isSin, isSinh, isSlot, isSlotSequence, isSymbol, isTan, isTanh, isTimes, isTrue, isValue, isVector, leaves, minus, mod, multiply, negative, or, plus, power, power, replaceAll, replaceAll, replacePart, replaceRepeated, replaceRepeated, replaceSlots, signum, times, topHead, variables2Slots
-
Methods inherited from interface edu.jas.structure.AbelianGroupElem
abs, isZERO, subtract, sum
-
Methods inherited from interface edu.jas.structure.MonoidElem
divide, isONE, isUnit, remainder
-
-
-
-
Method Detail
-
isEven
boolean isEven()
-
isOdd
boolean isOdd()
-
getBigNumerator
java.math.BigInteger getBigNumerator()
Returns the numerator of this Rational.- Returns:
- numerator
-
multiply
IInteger multiply(IInteger value)
Multiply this integer with value- Parameters:
value-- Returns:
-
pow
IInteger pow(int exponent)
-
intValue
int intValue()
Converts this large integer toint; unlikeISignedNumber.toInt()this method raises no exception, if this integer cannot be represented by aninttype.- Returns:
- the numeric value represented by this integer after conversion to
type
int.
-
longValue
long longValue()
-
gcd
IInteger gcd(IInteger val)
Returns the greatest common divisor of this large integer and the one specified.
-
lcm
IInteger lcm(IInteger val)
Returns the least common multiple of this large integer and the one specified.
-
nthRoot
IInteger nthRoot(int n) throws java.lang.ArithmeticException
Returns the n-th integer root- Parameters:
n-- Returns:
- Throws:
java.lang.ArithmeticException
-
nthRootSplit
IInteger[] nthRootSplit(int n)
Split this integer into the nth-root (with prime factors less equal 1021) and the "rest factor"- Returns:
{nth-root, rest factor}
-
-
DMelt 3.0 © DataMelt by jWork.ORG