- All Superinterfaces:
Comparable<PsyRealNumeric>,PsyAdditive<PsyNumeric>,PsyArithmetic<PsyNumeric>,PsyConvertableToInteger,PsyConvertableToIntegral,PsyConvertableToRational,PsyConvertableToReal,PsyMultiplicative<PsyNumeric>,PsyNumeric,PsyObject,PsyScalar<PsyRealNumeric>,PsyValue
- 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_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPE -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(PsyRealNumeric oRealNumeric) Compares thisscalarwith the specifiedscalarfor order.doubledefault doubleReturns the imaginary part of this object.intintValue()longpsyAbs()Returns thenumericabsolute value of this object.default PsyRealpsyAcos()Returns thenumericarc cosine of this object.default PsyNumericpsyAdd(PsyNumeric oNumeric) Returns theadditiveresult of arithmetic addition of specified object to this object.psyAdd(PsyRealNumeric oRealNumeric) 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 PsyBooleanReturns abooleanresult of equality test of thisobjectand givenobject.default PsyRealpsyExp()Returns thenumericexponent of this object.psyFloor()default PsyRealpsyHypot(PsyRealNumeric oRealNumeric) default PsyRealpsyLog()Returns thenumericnatural logarithm of this object.default PsyNumericpsyMul(PsyNumeric oNumeric) Returns a result of arithmetic multiplication of this number by given object.psyMul(PsyRealNumeric oRealNumeric) psyNeg()Returns theadditiveresult of arithmetic negation of this object.default PsyNumericpsyPow(PsyNumeric oNumeric) 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 oNumeric) Returns theadditiveresult of arithmetic subtraction of specified object from this object.psySub(PsyRealNumeric oRealNumeric) 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
isZero, 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, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, 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 of this object
-
imagValue
default double imagValue()Description copied from interface:PsyNumericReturns the imaginary part of this object.- Specified by:
imagValuein interfacePsyNumeric- Returns:
- the imaginary part of this object
-
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 of this object
-
psyAdd
-
psyAdd
Description copied from interface:PsyAdditiveReturns theadditiveresult of arithmetic addition of specified object to this object.- Specified by:
psyAddin interfacePsyAdditive<PsyNumeric>- Parameters:
oNumeric- the specified object.- Returns:
- the
additiveresult of arithmetic addition of specified object to this object
-
psySub
-
psySub
Description copied from interface:PsyAdditiveReturns theadditiveresult of arithmetic subtraction of specified object from this object.- Specified by:
psySubin interfacePsyAdditive<PsyNumeric>- Parameters:
oNumeric- the specified object.- Returns:
- the
additiveresult of arithmetic subtraction of specified object from this object
-
psyMul
-
psyMul
Description copied from interface:PsyMultiplicativeReturns a result of arithmetic multiplication of this number by given object.- Specified by:
psyMulin interfacePsyMultiplicative<PsyNumeric>- Parameters:
oNumeric- a given number.- Returns:
- a result of arithmetic multiplication of this number by given object
-
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 result of arithmetic division of this object by given object
- 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 of this object
-
psySqrt
Description copied from interface:PsyNumericReturns thenumericsquare root of this object.- Specified by:
psySqrtin interfacePsyNumeric- Returns:
- the
numericsquare root of this object
-
psyCbrt
Description copied from interface:PsyNumericReturns thenumericcubic root of this object.- Specified by:
psyCbrtin interfacePsyNumeric- Returns:
- the
numericcubic root of this object
-
psyExp
Description copied from interface:PsyNumericReturns thenumericexponent of this object.- Specified by:
psyExpin interfacePsyNumeric- Returns:
- the
numericexponent of this object
-
psyLog
Description copied from interface:PsyNumericReturns thenumericnatural logarithm of this object.- Specified by:
psyLogin interfacePsyNumeric- Returns:
- the
numericnatural logarithm of this object
-
psyCos
Description copied from interface:PsyNumericReturns thenumericcosine of this object.- Specified by:
psyCosin interfacePsyNumeric- Returns:
- the
numericcosine of this object
-
psySin
Description copied from interface:PsyNumericReturns thenumericsine of this object.- Specified by:
psySinin interfacePsyNumeric- Returns:
- the
numericsine of this object
-
psyTan
Description copied from interface:PsyNumericReturns thenumerictangent of this object.- Specified by:
psyTanin interfacePsyNumeric- Returns:
- the
numerictangent of this object
-
psyCosh
Description copied from interface:PsyNumericReturns thenumerichyperbolic cosine of this object.- Specified by:
psyCoshin interfacePsyNumeric- Returns:
- the
numerichyperbolic cosine of this object
-
psySinh
Description copied from interface:PsyNumericReturns thenumerichyperbolic sine of this object.- Specified by:
psySinhin interfacePsyNumeric- Returns:
- the
numerichyperbolic sine of this object
-
psyTanh
Description copied from interface:PsyNumericReturns thenumerichyperbolic tangent of this object.- Specified by:
psyTanhin interfacePsyNumeric- Returns:
- the
numerichyperbolic tangent of this object
-
psyAcos
Description copied from interface:PsyNumericReturns thenumericarc cosine of this object.- Specified by:
psyAcosin interfacePsyNumeric- Returns:
- the
numericarc cosine of this object
-
psyAsin
Description copied from interface:PsyNumericReturns thenumericarc sine of this object.- Specified by:
psyAsinin interfacePsyNumeric- Returns:
- the
numericarc sine of this object
-
psyAtan
Description copied from interface:PsyNumericReturns thenumericarc tangent of this object.- Specified by:
psyAtanin interfacePsyNumeric- Returns:
- the
numericarc tangent of this object
-
psyHypot
-
psyFloor
PsyRealNumeric psyFloor() -
psyCeiling
PsyRealNumeric psyCeiling() -
psyRound
PsyRealNumeric psyRound() -
psyEq
Description copied from interface:PsyObjectReturns abooleanresult of equality test of thisobjectand givenobject. -
compareTo
Description copied from interface:PsyScalarCompares thisscalarwith the specifiedscalarfor order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specifiedscalar.- Specified by:
compareToin interfaceComparable<PsyRealNumeric>- Specified by:
compareToin interfacePsyScalar<PsyRealNumeric>- Parameters:
oRealNumeric- thescalarto be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified.
-