public interface IFraction extends IRational
ASTID, BLANKID, COMPLEXID, DOUBLECOMPLEXID, DOUBLEID, FRACTIONID, INTEGERID, METHODSYMBOLID, PATTERNID, STRINGID, SYMBOLID
Modifier and Type | Method and Description |
---|---|
IFraction |
abs()
Absolute value of this.
|
IFraction |
add(IFraction parm1) |
IFraction |
div(IFraction other) |
IInteger[] |
divideAndRemainder()
Returns an array of two BigIntegers containing (numerator / denominator)
followed by (numerator % denominator).
|
java.math.BigInteger |
getBigDenominator()
Returns the denominator of this fraction.
|
java.math.BigInteger |
getBigNumerator()
Returns the numerator of this fraction.
|
org.apache.commons.math4.fraction.BigFraction |
getRational() |
IFraction |
inverse()
Returns a new rational representing the inverse of
this . |
IFraction |
mul(IFraction other) |
IFraction |
multiply(IFraction parm1) |
IFraction |
negate()
Returns a new rational equal to
-this . |
INumber |
normalize()
Return the normalized form of this number (i.e. if the denominator part
equals one, return the numerator part as an integer number).
|
IFraction |
pow(long exp)
Returns this number raised at the specified exponent.
|
IFraction |
sub(IFraction parm1) |
add, ceil, compareInt, divideBy, equalsFraction, factorInteger, floor, getDenominator, getFraction, getNumerator, multiply, subtract
apfloatNumValue, divideBy, doubleValue, isGreaterThan, isLessThan, isNegative, isPositive, isZero, numValue, opposite, round, sign, subtractFrom, toInt, toLong
numericNumber
apcomplexNumValue, ceilFraction, compareAbsValueToOne, complexNumValue, complexSign, conjugate, eabs, 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, variables2Slots
IFraction abs()
IInteger[] divideAndRemainder()
java.math.BigInteger getBigDenominator()
getBigDenominator
in interface IRational
java.math.BigInteger getBigNumerator()
getBigNumerator
in interface IRational
org.apache.commons.math4.fraction.BigFraction getRational()
IFraction inverse()
this
.inverse
in interface IExpr
inverse
in interface ISignedNumber
inverse
in interface edu.jas.structure.MonoidElem<IExpr>
this
.IFraction negate()
-this
.INumber normalize()
IRational
IFraction pow(long exp) throws java.lang.ArithmeticException