- All Superinterfaces:
PsyAdditive<PsyNumeric>
,PsyArithmetic<PsyNumeric>
,PsyAtomic
,PsyBitwise<PsyIntegral>
,PsyConvertableToInteger
,PsyConvertableToIntegral
,PsyConvertableToReal
,PsyLogical<PsyIntegral>
,PsyMultiplicative<PsyNumeric>
,PsyNumeric
,PsyObject
,PsyRational
,PsyRealNumeric
,PsyScalar<PsyRealNumeric>
- All Known Implementing Classes:
PsyBigInteger
,PsyInteger
@Type("integral")
public sealed interface PsyIntegral
extends PsyBitwise<PsyIntegral>, PsyRational
permits PsyBigInteger, PsyInteger
The representation of
integral
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PsyInteger
static final PsyInteger
static final ContextAction
Context action of thegcd
operator.static final ContextAction
Context action of theidiv
operator.static final ContextAction
Context action of thelcm
operator.static final ContextAction
Context action of themod
operator.static final PsyInteger
static final PsyInteger
Fields inherited from interface coneforest.psylla.core.PsyAdditive
PSY_ADD, PSY_ISZERO, PSY_NEG, PSY_NONZERO, PSY_SUB
Fields inherited from interface coneforest.psylla.core.PsyBitwise
PSY_BITSHIFT, PSY_CLEARBIT, PSY_FLIPBIT, PSY_SETBIT, PSY_TESTBIT
Fields inherited from interface coneforest.psylla.core.PsyConvertableToInteger
PSY_TOINTEGER
Fields inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
PSY_TOINTEGRAL
Fields inherited from interface coneforest.psylla.core.PsyConvertableToReal
PSY_TOREAL
Fields inherited from interface coneforest.psylla.core.PsyLogical
PSY_AND, PSY_NOT, PSY_OR, PSY_XOR
Fields inherited from interface coneforest.psylla.core.PsyMultiplicative
PSY_DIV, PSY_MUL, PSY_RECIPROCAL
Fields inherited from interface coneforest.psylla.core.PsyNumeric
PSY_ABS, PSY_ACOS, PSY_ATAN, PSY_CBRT, PSY_COS, PSY_COSH, PSY_EXP, PSY_LOG, PSY_POW, PSY_SIGNUM, PSY_SIN, PSY_SINH, PSY_SQRT, PSY_TAN, PSY_TANH
Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPE
Fields inherited from interface coneforest.psylla.core.PsyRational
PSY_DENOMINATOR, PSY_NUMERATOR
Fields inherited from interface coneforest.psylla.core.PsyRealNumeric
PSY_CEILING, PSY_FLOOR, PSY_HYPOT, PSY_ROUND
-
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
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) Returns anintegral
representing this object modulo given modulus.psyNeg()
Returns anadditive
representing the result of arithmetic negation of this object.default PsyIntegral
Returns anintegral
numerator of this fraction.default PsyIntegral
psyRound()
default PsyIntegral
Methods inherited from interface coneforest.psylla.core.PsyAdditive
psyIsZero, psyNonZero
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, psyAdd, psyDiv, psyMul, psyReciprocal, psySub
Methods inherited from interface coneforest.psylla.core.PsyRealNumeric
doubleValue, imagValue, intValue, longValue, psyAcos, psyAdd, psyAsin, psyAtan, psyCbrt, psyCmp, psyCos, psyCosh, psyDiv, psyEq, psyExp, psyGe, psyGt, psyHypot, psyLe, psyLog, psyLt, psyMul, psyPow, psyPow, psySin, psySinh, psySqrt, psySub, psyTan, psyTanh, psyToInteger, psyToReal, realValue
-
Field Details
-
ZERO
-
ONE
-
TWO
-
MINUS_ONE
-
PSY_IDIV
Context action of theidiv
operator. -
PSY_MOD
Context action of themod
operator. -
PSY_GCD
Context action of thegcd
operator. -
PSY_LCM
Context action of thelcm
operator.
-
-
Method Details
-
psyNumerator
Description copied from interface:PsyRational
Returns anintegral
numerator of this fraction.- Specified by:
psyNumerator
in interfacePsyRational
- Returns:
- the numerator.
-
psyDenominator
Description copied from interface:PsyRational
Returns anintegral
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 interfacePsyRational
- 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 interfacePsyRational
- 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 PsyRangeCheckException, PsyUndefinedResultException Returns anintegral
representing this object modulo given modulus.- Parameters:
oIntegral
- the given modulus.- Throws:
PsyRangeCheckException
- when the modulus is negative.PsyUndefinedResultException
- when the modulus is zero.
-
psyGCD
Returns anintegral
representing the greatest common divisor of this object and given object.- Parameters:
oIntegral
- the 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:
PsyUndefinedResultException
-
psyToIntegral
- Specified by:
psyToIntegral
in interfacePsyConvertableToIntegral
-
of
-
of
-
parseLiteral
- Throws:
PsySyntaxErrorException
-