- All Superinterfaces:
Comparable<PsyRealNumeric>,PsyAdditive<PsyNumeric>,PsyArithmetic<PsyNumeric>,PsyAtomic,PsyBitwise<PsyIntegral>,PsyConvertableToInteger,PsyConvertableToIntegral,PsyConvertableToRational,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 PsyIntegerstatic final PsyIntegerstatic final ContextActionContext action of thegcdoperator.static final ContextActionContext action of theidivoperator.static final ContextActionContext action of thelcmoperator.static final ContextActionContext action of themodoperator.static final PsyIntegerstatic final PsyIntegerFields inherited from interface coneforest.psylla.core.PsyAdditive
PSY_ADD, PSY_ISZERO, PSY_NEG, PSY_NONZERO, PSY_SUBFields inherited from interface coneforest.psylla.core.PsyBitwise
PSY_BITSHIFT, PSY_CLEARBIT, PSY_FLIPBIT, PSY_SETBIT, PSY_TESTBITFields inherited from interface coneforest.psylla.core.PsyConvertableToInteger
PSY_TOINTEGERFields inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
PSY_TOINTEGRALFields inherited from interface coneforest.psylla.core.PsyConvertableToRational
PSY_TORATIONALFields inherited from interface coneforest.psylla.core.PsyConvertableToReal
PSY_TOREALFields inherited from interface coneforest.psylla.core.PsyLogical
PSY_AND, PSY_NOT, PSY_OR, PSY_XORFields inherited from interface coneforest.psylla.core.PsyMultiplicative
PSY_DIV, PSY_MUL, PSY_RECIPROCALFields inherited from interface coneforest.psylla.core.PsyNumeric
PSY_ABS, PSY_ACOS, PSY_ASIN, 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_TANHFields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPEFields inherited from interface coneforest.psylla.core.PsyRational
PSY_DENOMINATOR, PSY_NUMERATORFields inherited from interface coneforest.psylla.core.PsyRealNumeric
PSY_CEILING, PSY_FLOOR, PSY_HYPOT, PSY_ROUND -
Method Summary
Modifier and TypeMethodDescriptionstatic PsyIntegerof(long longValue) static PsyIntegralof(BigInteger bigIntegerValue) static PsyIntegralparseLiteral(String image) psyAbs()Returns thenumericabsolute value of this object.default PsyIntegraldefault PsyIntegralReturns anintegraldenominator of this fraction.default PsyIntegralpsyFloor()default PsyIntegralpsyGCD(PsyIntegral oIntegral) Returns anintegralrepresenting the greatest common divisor of this object and given object.psyIdiv(PsyIntegral oIntegral) default PsyIntegralpsyLCM(PsyIntegral oIntegral) Returns anintegralrepresenting the least common multiple of this object and given object.psyMod(PsyIntegral oIntegral) Returns anintegralrepresenting this object modulo given modulus.psyNeg()Returns theadditiveresult of arithmetic negation of this object.default PsyIntegralReturns anintegralnumerator of this fraction.default PsyIntegralpsyRound()default PsyIntegralMethods inherited from interface coneforest.psylla.core.PsyAdditive
psyIsZero, psyNonZeroMethods inherited from interface coneforest.psylla.core.PsyBitwise
psyBitShift, psyClearBit, psyFlipBit, psySetBit, psyTestBitMethods inherited from interface coneforest.psylla.core.PsyLogical
psyAnd, psyNot, psyOr, psyXorMethods inherited from interface coneforest.psylla.core.PsyNumeric
psySignumMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeNameMethods inherited from interface coneforest.psylla.core.PsyRational
bigIntegerValue, compareTo, psyAdd, psyDiv, psyMul, psyReciprocal, psySub, psyToRational, rationalValueMethods inherited from interface coneforest.psylla.core.PsyRealNumeric
doubleValue, imagValue, intValue, longValue, psyAcos, psyAdd, psyAsin, psyAtan, psyCbrt, psyCos, psyCosh, psyDiv, psyEq, psyExp, psyHypot, psyLog, psyMul, psyPow, psyPow, psySin, psySinh, psySqrt, psySub, psyTan, psyTanh, psyToInteger, psyToReal, realValue
-
Field Details
-
ZERO
-
ONE
-
TWO
-
MINUS_ONE
-
PSY_IDIV
Context action of theidivoperator. -
PSY_MOD
Context action of themodoperator. -
PSY_GCD
Context action of thegcdoperator. -
PSY_LCM
Context action of thelcmoperator.
-
-
Method Details
-
psyNumerator
Description copied from interface:PsyRationalReturns anintegralnumerator of this fraction.- Specified by:
psyNumeratorin interfacePsyRational- Returns:
- the numerator.
-
psyDenominator
Description copied from interface:PsyRationalReturns anintegraldenominator of this fraction.- Specified by:
psyDenominatorin interfacePsyRational- Returns:
- the denominator.
-
psyAbs
PsyIntegral psyAbs()Description copied from interface:PsyNumericReturns thenumericabsolute value of this object.- Specified by:
psyAbsin interfacePsyNumeric- Specified by:
psyAbsin interfacePsyRational- Specified by:
psyAbsin interfacePsyRealNumeric- Returns:
- the
numericabsolute value.
-
psyNeg
PsyIntegral psyNeg()Description copied from interface:PsyAdditiveReturns theadditiveresult of arithmetic negation of this object.- Specified by:
psyNegin interfacePsyAdditive<PsyNumeric>- Specified by:
psyNegin interfacePsyRational- Specified by:
psyNegin interfacePsyRealNumeric- Returns:
- the
additiveresult of arithmetic negation.
-
psyFloor
- Specified by:
psyFloorin interfacePsyRational- Specified by:
psyFloorin interfacePsyRealNumeric
-
psyCeiling
- Specified by:
psyCeilingin interfacePsyRational- Specified by:
psyCeilingin interfacePsyRealNumeric
-
psyRound
- Specified by:
psyRoundin interfacePsyRealNumeric
-
psyIdiv
- Throws:
PsyUndefinedResultException
-
psyMod
PsyIntegral psyMod(PsyIntegral oIntegral) throws PsyRangeCheckException, PsyUndefinedResultException Returns anintegralrepresenting 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 anintegralrepresenting the greatest common divisor of this object and given object.- Parameters:
oIntegral- the given object.- Returns:
- the greatest common divisor.
-
psyLCM
Returns anintegralrepresenting the least common multiple of this object and given object.- Parameters:
oIntegral- given object.- Returns:
- the least common multiple.
- Throws:
PsyUndefinedResultException
-
psyToIntegral
- Specified by:
psyToIntegralin interfacePsyConvertableToIntegral
-
of
-
of
-
parseLiteral
- Throws:
PsySyntaxErrorException
-