- All Superinterfaces:
Comparable<PsyRealNumeric>,PsyAdditive<PsyNumeric>,PsyArithmetic<PsyNumeric>,PsyAtomic,PsyConvertableToInteger,PsyConvertableToIntegral,PsyConvertableToRational,PsyConvertableToReal,PsyMultiplicative<PsyNumeric>,PsyNumeric,PsyObject,PsyScalar<PsyRealNumeric>
- All Known Subinterfaces:
PsyIntegral,PsyRational
- All Known Implementing Classes:
PsyBigFraction,PsyBigInteger,PsyFraction,PsyInteger,PsyReal
@Type("realnumeric")
public sealed interface PsyRealNumeric
extends PsyNumeric, PsyConvertableToInteger, PsyConvertableToIntegral, PsyConvertableToRational, PsyConvertableToReal, PsyScalar<PsyRealNumeric>
permits PsyRational, PsyReal
The representation of
realnumeric, an abstraction of real number.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextActionContext action of theceilingoperator.static final ContextActionContext action of theflooroperator.static final ContextActionContext action of thehypotoperator.static final ContextActionContext action of theroundoperator.Fields inherited from interface coneforest.psylla.core.PsyAdditive
PSY_ADD, PSY_ISZERO, PSY_NEG, PSY_NONZERO, PSY_SUBFields 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.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_TYPE -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(PsyRealNumeric oRealNumeric) doubledefault doubleReturns the real part of this object.intintValue()longpsyAbs()Returns thenumericabsolute value of this object.default PsyRealpsyAcos()Returns thenumericarc cosine of this object.default PsyNumericpsyAdd(PsyNumeric oNumber) Returns theadditiveresult of arithmetic addition of specified object to this object.psyAdd(PsyRealNumeric oNumber) default PsyRealpsyAsin()Returns thenumericarc sine of this object.default PsyRealpsyAtan()Returns thenumericarc tangent of this object.default PsyRealpsyCbrt()Returns thenumericcubic root of this object.default PsyRealpsyCos()Returns thenumericcosine of this object.default PsyRealpsyCosh()Returns thenumerichyperbolic cosine of this object.default PsyNumericpsyDiv(PsyNumeric oNumeric) Returns a result of arithmetic division of this object by given object.psyDiv(PsyRealNumeric oRealNumeric) default PsyBooleandefault PsyRealpsyExp()Returns thenumericexponent of this object.psyFloor()default PsyRealpsyHypot(PsyRealNumeric oRealNumeric) default PsyRealpsyLog()Returns thenumericnatural logarithm of this object.default PsyNumericpsyMul(PsyNumeric oNumber) Returns a result of arithmetic multiplication of given object by this object.psyMul(PsyRealNumeric oNumber) psyNeg()Returns theadditiveresult of arithmetic negation of this object.default PsyNumericpsyPow(PsyNumeric oNumber) default PsyRealpsyPow(PsyRealNumeric oNumber) psyRound()default PsyRealpsySin()Returns thenumericsine of this object.default PsyRealpsySinh()Returns thenumerichyperbolic sine of this object.default PsyRealpsySqrt()Returns thenumericsquare root of this object.default PsyNumericpsySub(PsyNumeric oNumber) Returns theadditiveresult of arithmetic subtraction of specified object from this object.psySub(PsyRealNumeric oNumber) default PsyRealpsyTan()Returns thenumerictangent of this object.default PsyRealpsyTanh()Returns thenumerichyperbolic tangent of this object.default PsyIntegerdefault PsyRationaldefault PsyRealdefault doubleReturns the real part of this object.Methods inherited from interface coneforest.psylla.core.PsyAdditive
psyIsZero, psyNonZeroMethods inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
psyToIntegralMethods inherited from interface coneforest.psylla.core.PsyMultiplicative
psyReciprocalMethods 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, typeName
-
Field Details
-
PSY_CEILING
Context action of theceilingoperator. -
PSY_FLOOR
Context action of theflooroperator. -
PSY_HYPOT
Context action of thehypotoperator. -
PSY_ROUND
Context action of theroundoperator.
-
-
Method Details
-
intValue
int intValue() -
longValue
long longValue() -
doubleValue
double doubleValue() -
rationalValue
- Throws:
PsyUndefinedResultException
-
psyToRational
- Specified by:
psyToRationalin interfacePsyConvertableToRational- Throws:
PsyUndefinedResultException
-
realValue
default double realValue()Description copied from interface:PsyNumericReturns the real part of this object.- Specified by:
realValuein interfacePsyNumeric- Returns:
- the real part.
-
imagValue
default double imagValue()Description copied from interface:PsyNumericReturns the real part of this object.- Specified by:
imagValuein interfacePsyNumeric- Returns:
- the imaginary part.
-
psyToInteger
- Specified by:
psyToIntegerin interfacePsyConvertableToInteger- Throws:
PsyRangeCheckException
-
psyToReal
- Specified by:
psyToRealin interfacePsyConvertableToReal
-
psyNeg
PsyRealNumeric psyNeg()Description copied from interface:PsyAdditiveReturns theadditiveresult of arithmetic negation of this object.- Specified by:
psyNegin interfacePsyAdditive<PsyNumeric>- Returns:
- the
additiveresult of arithmetic negation.
-
psyAdd
-
psyAdd
Description copied from interface:PsyAdditiveReturns theadditiveresult of arithmetic addition of specified object to this object.- Specified by:
psyAddin interfacePsyAdditive<PsyNumeric>- Parameters:
oNumber- the specified object.- Returns:
- the sum.
-
psySub
-
psySub
Description copied from interface:PsyAdditiveReturns theadditiveresult of arithmetic subtraction of specified object from this object.- Specified by:
psySubin interfacePsyAdditive<PsyNumeric>- Parameters:
oNumber- the specified object.- Returns:
- a difference.
-
psyMul
-
psyMul
Description copied from interface:PsyMultiplicativeReturns a result of arithmetic multiplication of given object by this object.- Specified by:
psyMulin interfacePsyMultiplicative<PsyNumeric>- Parameters:
oNumber- a given object.- Returns:
- a product.
-
psyDiv
- Throws:
PsyUndefinedResultException
-
psyDiv
Description copied from interface:PsyMultiplicativeReturns a result of arithmetic division of this object by given object.- Specified by:
psyDivin interfacePsyMultiplicative<PsyNumeric>- Parameters:
oNumeric- a given object.- Returns:
- a fraction.
- Throws:
PsyUndefinedResultException- when the result of division is not defined.
-
psyPow
-
psyPow
- Specified by:
psyPowin interfacePsyNumeric
-
psyAbs
PsyRealNumeric psyAbs()Description copied from interface:PsyNumericReturns thenumericabsolute value of this object.- Specified by:
psyAbsin interfacePsyNumeric- Returns:
- the
numericabsolute value.
-
psySqrt
Description copied from interface:PsyNumericReturns thenumericsquare root of this object.- Specified by:
psySqrtin interfacePsyNumeric- Returns:
- the
numericsquare root.
-
psyCbrt
Description copied from interface:PsyNumericReturns thenumericcubic root of this object.- Specified by:
psyCbrtin interfacePsyNumeric- Returns:
- the
numericcubic root.
-
psyExp
Description copied from interface:PsyNumericReturns thenumericexponent of this object.- Specified by:
psyExpin interfacePsyNumeric- Returns:
- the
numericexponent.
-
psyLog
Description copied from interface:PsyNumericReturns thenumericnatural logarithm of this object.- Specified by:
psyLogin interfacePsyNumeric- Returns:
- the
numericnatural logarithm.
-
psyCos
Description copied from interface:PsyNumericReturns thenumericcosine of this object.- Specified by:
psyCosin interfacePsyNumeric- Returns:
- the
numericcosine.
-
psySin
Description copied from interface:PsyNumericReturns thenumericsine of this object.- Specified by:
psySinin interfacePsyNumeric- Returns:
- the
numericsine.
-
psyTan
Description copied from interface:PsyNumericReturns thenumerictangent of this object.- Specified by:
psyTanin interfacePsyNumeric- Returns:
- the
numerictangent.
-
psyCosh
Description copied from interface:PsyNumericReturns thenumerichyperbolic cosine of this object.- Specified by:
psyCoshin interfacePsyNumeric- Returns:
- the
numerichyperbolic cosine.
-
psySinh
Description copied from interface:PsyNumericReturns thenumerichyperbolic sine of this object.- Specified by:
psySinhin interfacePsyNumeric- Returns:
- the
numerichyperbolic sine.
-
psyTanh
Description copied from interface:PsyNumericReturns thenumerichyperbolic tangent of this object.- Specified by:
psyTanhin interfacePsyNumeric- Returns:
- the
numerichyperbolic tangent.
-
psyAcos
Description copied from interface:PsyNumericReturns thenumericarc cosine of this object.- Specified by:
psyAcosin interfacePsyNumeric- Returns:
- the
numericarc cosine.
-
psyAsin
Description copied from interface:PsyNumericReturns thenumericarc sine of this object.- Specified by:
psyAsinin interfacePsyNumeric- Returns:
- the
numericarc sine.
-
psyAtan
Description copied from interface:PsyNumericReturns thenumericarc tangent of this object.- Specified by:
psyAtanin interfacePsyNumeric- Returns:
- the
numericarc tangent.
-
psyHypot
-
psyFloor
PsyRealNumeric psyFloor() -
psyCeiling
PsyRealNumeric psyCeiling() -
psyRound
PsyRealNumeric psyRound() -
psyEq
-
compareTo
- Specified by:
compareToin interfaceComparable<PsyRealNumeric>- Specified by:
compareToin interfacePsyScalar<PsyRealNumeric>
-