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
.-
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
Returns anintegral
representing a denominator of this fraction.default PsyIntegral
psyFloor()
default PsyIntegral
psyGCD
(PsyIntegral oIntegral) Returns anintegral
representing the greatest common divisor of this object and given object.psyIdiv
(PsyIntegral oIntegral) default PsyIntegral
psyLCM
(PsyIntegral oIntegral) Returns anintegral
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
Returns anintegral
representing a numerator of this fraction.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.PsyNumeric
psySignum
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, cmp
Methods inherited from interface coneforest.psylla.core.PsyRealNumeric
doubleValue, imagValue, intValue, longValue, psyAcos, psyAdd, psyAdd, psyAsin, psyAtan, psyCbrt, psyCmp, psyCos, psyCosh, psyDiv, psyDiv, psyEq, psyExp, psyGe, psyGt, psyHypot, psyLe, psyLog, psyLt, psyMul, psyMul, psyPow, psyPow, psySin, psySinh, psySqrt, psySub, psySub, psyTan, psyTanh, psyToInteger, psyToReal, realValue
-
Field Details
-
ZERO
-
ONE
-
TWO
-
MINUS_ONE
-
OPERATORS
-
-
Method Details
-
psyNumerator
Description copied from interface:PsyRational
Returns anintegral
representing a numerator of this fraction.- Specified by:
psyNumerator
in interfacePsyRational
- Returns:
- the numerator.
-
psyDenominator
Description copied from interface:PsyRational
Returns anintegral
representing a denominator of this fraction.- Specified by:
psyDenominator
in interfacePsyRational
- Returns:
- the denominator.
-
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 interfacePsyRational
- Specified by:
psyFloor
in interfacePsyRealNumeric
-
psyCeiling
- Specified by:
psyCeiling
in interfacePsyRational
- Specified by:
psyCeiling
in interfacePsyRealNumeric
-
psyRound
- Specified by:
psyRound
in interfacePsyRealNumeric
-
psyIdiv
- Throws:
PsyUndefinedResultException
-
psyMod
PsyIntegral psyMod(PsyIntegral oIntegral) throws PsyUndefinedResultException, PsyRangeCheckException -
psyGCD
Returns anintegral
representing the greatest common divisor of this object and given object.- Parameters:
oIntegral
- given object.- Returns:
- the greatest common divisor.
-
psyLCM
Returns anintegral
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
-