Package coneforest.psylla.core
Interface PsyIntegral
- All Superinterfaces:
PsyAdditive<PsyNumeric>
,PsyArithmetic<PsyNumeric>
,PsyAtomic
,PsyBitwise<PsyIntegral>
,PsyConvertableToInteger
,PsyConvertableToIntegral
,PsyConvertableToName
,PsyConvertableToReal
,PsyConvertableToString
,PsyLogical<PsyIntegral>
,PsyMultiplicative<PsyNumeric>
,PsyNumeric
,PsyObject
,PsyRational
,PsyRealNumeric
,PsyScalar<PsyRealNumeric>
- All Known Implementing Classes:
PsyBigInteger
,PsyInteger
A representation of
integral
object.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PsyInteger
static final PsyInteger
static final PsyOperator[]
static final PsyInteger
static final PsyInteger
-
Method Summary
Modifier and TypeMethodDescriptionstatic PsyInteger
of
(long longValue) static PsyIntegral
of
(BigInteger bigIntegerValue) static PsyIntegral
parseLiteral
(String image) psyAbs()
Returns anumeric
absolute value of this object.default PsyIntegral
default PsyIntegral
default PsyIntegral
psyFloor()
default PsyIntegral
psyGCD
(PsyIntegral oIntegral) Returns anadditive
representing the greatest common divisor of this object and given object.psyIdiv
(PsyIntegral oIntegral) default PsyIntegral
psyLCM
(PsyIntegral oIntegral) Returns anadditive
representing the least common multiple of this object and given object.psyMod
(PsyIntegral oIntegral) psyNeg()
Returns anadditive
representing the result of arithmetic negation of this object.default PsyIntegral
default PsyIntegral
psyRound()
default PsyIntegral
Methods inherited from interface coneforest.psylla.core.PsyAdditive
psyIsZero, psyNotZero
Methods inherited from interface coneforest.psylla.core.PsyBitwise
psyBitShift, psyClearBit, psyFlipBit, psySetBit, psyTestBit
Methods inherited from interface coneforest.psylla.core.PsyLogical
psyAnd, psyNot, psyOr, psyXor
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
Methods inherited from interface coneforest.psylla.core.PsyRational
bigIntegerValue
Methods inherited from interface coneforest.psylla.core.PsyRealNumeric
doubleValue, imagValue, intValue, longValue, psyAcos, psyAdd, psyAdd, psyAsin, psyAtan, psyCbrt, psyCos, psyCosh, psyDiv, psyDiv, psyEq, psyExp, psyGe, psyGt, psyHypot, psyLe, psyLog, psyLt, psyMul, psyMul, psyPow, psyPow, psySignum, psySin, psySinh, psySqrt, psySub, psySub, psyTan, psyTanh, psyToInteger, psyToReal, realValue
-
Field Details
-
ZERO
-
ONE
-
TWO
-
MINUS_ONE
-
OPERATORS
-
-
Method Details
-
psyNumerator
- Specified by:
psyNumerator
in interfacePsyRational
-
psyDenominator
- Specified by:
psyDenominator
in interfacePsyRational
-
psyAbs
PsyIntegral psyAbs()Description copied from interface:PsyNumeric
Returns anumeric
absolute value of this object.- Specified by:
psyAbs
in interfacePsyNumeric
- Specified by:
psyAbs
in interfacePsyRealNumeric
- Returns:
- a
numeric
absolute value.
-
psyNeg
PsyIntegral psyNeg()Description copied from interface:PsyAdditive
Returns anadditive
representing the result of arithmetic negation of this object.- Specified by:
psyNeg
in interfacePsyAdditive<PsyNumeric>
- Specified by:
psyNeg
in interfacePsyRealNumeric
- Returns:
- a negation.
-
psyFloor
- Specified by:
psyFloor
in interfacePsyRealNumeric
-
psyCeiling
- Specified by:
psyCeiling
in interfacePsyRealNumeric
-
psyRound
- Specified by:
psyRound
in interfacePsyRealNumeric
-
psyIdiv
- Throws:
PsyUndefinedResultException
-
psyMod
PsyIntegral psyMod(PsyIntegral oIntegral) throws PsyUndefinedResultException, PsyRangeCheckException -
psyGCD
Returns anadditive
representing the greatest common divisor of this object and given object.- Parameters:
oIntegral
- given object.- Returns:
- the greatest common divisor.
-
psyLCM
Returns anadditive
representing the least common multiple of this object and given object.- Parameters:
oIntegral
- given object.- Returns:
- the least common multiple.
- Throws:
PsyErrorException
-
psyToIntegral
- Specified by:
psyToIntegral
in interfacePsyConvertableToIntegral
-
of
-
of
-
parseLiteral
- Throws:
PsySyntaxErrorException
-