org.matheclipse.core.interfaces
Interface INumber
-
- All Superinterfaces:
- AbelianGroupElem<IExpr>, java.lang.Comparable<IExpr>, Element<IExpr>, IExpr, MonoidElem<IExpr>, RingElem<IExpr>, java.io.Serializable
- All Known Subinterfaces:
- IBigNumber, IComplex, IComplexNum, IFraction, IInteger, INum, IRational, ISignedNumber
- All Known Implementing Classes:
- ComplexNum, ComplexSym, FractionSym, IntegerSym, Num
public interface INumber extends IExpr
Implemented by all number interfaces
-
-
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 intcomplexSign()Gets the signum value of a complex numberIExpreabs()Get the absolute value for a given numberbooleanequalsInt(int i)Is this number equal an integer number?ISignedNumbergetIm()Returns the imaginary part of a complex numberISignedNumbergetRe()Returns the real part of a complex numberINumberopposite()-
Methods inherited from interface org.matheclipse.core.interfaces.IExpr
accept, accept, accept, and, apply, apply, asType, compareTo, evaluate, fullFormString, getAt, head, hierarchy, internalFormString, inverse, 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, isNegative, isNegativeInfinity, isNot, isNumber, isNumEqualInteger, isNumeric, isNumericFunction, isNumIntValue, isOne, isOr, isOrderlessAST, isPattern, isPatternExpr, isPatternSequence, isPlus, isPositive, isPower, isRational, isRealFunction, isRuleAST, isSame, isSame, isSequence, isSignedNumber, isSin, isSinh, isSlot, isSlotSequence, isSymbol, isTan, isTanh, isTimes, isTrue, isValue, isVector, isZero, 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, negate, subtract, sum
-
Methods inherited from interface edu.jas.structure.MonoidElem
divide, isONE, isUnit, remainder
-
-
-
-
Method Detail
-
complexSign
int complexSign()
Gets the signum value of a complex number- Returns:
- 0 for
this == 0; +1 forreal(this) > 0or( real(this)==0 && imaginary(this) > 0 ); -1 forreal(this) < 0 || ( real(this) == 0 && imaginary(this) < 0 )
-
eabs
IExpr eabs()
Get the absolute value for a given number- Returns:
-
equalsInt
boolean equalsInt(int i)
Is this number equal an integer number?- Parameters:
i-- Returns:
-
opposite
INumber opposite()
-
getIm
ISignedNumber getIm()
Returns the imaginary part of a complex number- Returns:
- real part
-
getRe
ISignedNumber getRe()
Returns the real part of a complex number- Returns:
- real part
-
-
DMelt 3.0 © DataMelt by jWork.ORG