- 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 ContextAction
Context action of theceiling
operator.static final ContextAction
Context action of thefloor
operator.static final ContextAction
Context action of thehypot
operator.static final ContextAction
Context action of theround
operator.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.PsyConvertableToInteger
PSY_TOINTEGER
Fields inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
PSY_TOINTEGRAL
Fields inherited from interface coneforest.psylla.core.PsyConvertableToRational
PSY_TORATIONAL
Fields inherited from interface coneforest.psylla.core.PsyConvertableToReal
PSY_TOREAL
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_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_TANH
Fields 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 TypeMethodDescriptionint
compareTo
(PsyRealNumeric oRealNumeric) Compares thisscalar
with the specifiedscalar
for order.double
default double
Returns the imaginary part of this object.int
intValue()
long
psyAbs()
Returns thenumeric
absolute value of this object.default PsyReal
psyAcos()
Returns thenumeric
arc cosine of this object.default PsyNumeric
psyAdd
(PsyNumeric oNumeric) Returns theadditive
result of arithmetic addition of specified object to this object.psyAdd
(PsyRealNumeric oRealNumeric) default PsyReal
psyAsin()
Returns thenumeric
arc sine of this object.default PsyReal
psyAtan()
Returns thenumeric
arc tangent of this object.default PsyReal
psyCbrt()
Returns thenumeric
cubic root of this object.default PsyReal
psyCos()
Returns thenumeric
cosine of this object.default PsyReal
psyCosh()
Returns thenumeric
hyperbolic cosine of this object.default PsyNumeric
psyDiv
(PsyNumeric oNumeric) Returns a result of arithmetic division of this object by given object.psyDiv
(PsyRealNumeric oRealNumeric) default PsyBoolean
Returns aboolean
result of equality test of thisobject
and givenobject
.default PsyReal
psyExp()
Returns thenumeric
exponent of this object.psyFloor()
default PsyReal
psyHypot
(PsyRealNumeric oRealNumeric) default PsyReal
psyLog()
Returns thenumeric
natural logarithm of this object.default PsyNumeric
psyMul
(PsyNumeric oNumeric) Returns a result of arithmetic multiplication of this number by given object.psyMul
(PsyRealNumeric oRealNumeric) psyNeg()
Returns theadditive
result of arithmetic negation of this object.default PsyNumeric
psyPow
(PsyNumeric oNumeric) default PsyReal
psyPow
(PsyRealNumeric oNumber) psyRound()
default PsyReal
psySin()
Returns thenumeric
sine of this object.default PsyReal
psySinh()
Returns thenumeric
hyperbolic sine of this object.default PsyReal
psySqrt()
Returns thenumeric
square root of this object.default PsyNumeric
psySub
(PsyNumeric oNumeric) Returns theadditive
result of arithmetic subtraction of specified object from this object.psySub
(PsyRealNumeric oRealNumeric) default PsyReal
psyTan()
Returns thenumeric
tangent of this object.default PsyReal
psyTanh()
Returns thenumeric
hyperbolic tangent of this object.default PsyInteger
default PsyRational
default PsyReal
default double
Returns the real part of this object.Methods inherited from interface coneforest.psylla.core.PsyAdditive
isZero, psyIsZero, psyNonZero
Methods inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
psyToIntegral
Methods inherited from interface coneforest.psylla.core.PsyMultiplicative
psyReciprocal
Methods inherited from interface coneforest.psylla.core.PsyNumeric
psySignum
Methods 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 theceiling
operator. -
PSY_FLOOR
Context action of thefloor
operator. -
PSY_HYPOT
Context action of thehypot
operator. -
PSY_ROUND
Context action of theround
operator.
-
-
Method Details
-
intValue
int intValue() -
longValue
long longValue() -
doubleValue
double doubleValue() -
rationalValue
- Throws:
PsyUndefinedResultException
-
psyToRational
- Specified by:
psyToRational
in interfacePsyConvertableToRational
- Throws:
PsyUndefinedResultException
-
realValue
default double realValue()Description copied from interface:PsyNumeric
Returns the real part of this object.- Specified by:
realValue
in interfacePsyNumeric
- Returns:
- the real part of this object
-
imagValue
default double imagValue()Description copied from interface:PsyNumeric
Returns the imaginary part of this object.- Specified by:
imagValue
in interfacePsyNumeric
- Returns:
- the imaginary part of this object
-
psyToInteger
- Specified by:
psyToInteger
in interfacePsyConvertableToInteger
- Throws:
PsyRangeCheckException
-
psyToReal
- Specified by:
psyToReal
in interfacePsyConvertableToReal
-
psyNeg
PsyRealNumeric psyNeg()Description copied from interface:PsyAdditive
Returns theadditive
result of arithmetic negation of this object.- Specified by:
psyNeg
in interfacePsyAdditive<PsyNumeric>
- Returns:
- the
additive
result of arithmetic negation of this object
-
psyAdd
-
psyAdd
Description copied from interface:PsyAdditive
Returns theadditive
result of arithmetic addition of specified object to this object.- Specified by:
psyAdd
in interfacePsyAdditive<PsyNumeric>
- Parameters:
oNumeric
- the specified object.- Returns:
- the
additive
result of arithmetic addition of specified object to this object
-
psySub
-
psySub
Description copied from interface:PsyAdditive
Returns theadditive
result of arithmetic subtraction of specified object from this object.- Specified by:
psySub
in interfacePsyAdditive<PsyNumeric>
- Parameters:
oNumeric
- the specified object.- Returns:
- the
additive
result of arithmetic subtraction of specified object from this object
-
psyMul
-
psyMul
Description copied from interface:PsyMultiplicative
Returns a result of arithmetic multiplication of this number by given object.- Specified by:
psyMul
in 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:PsyMultiplicative
Returns a result of arithmetic division of this object by given object.- Specified by:
psyDiv
in 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:
psyPow
in interfacePsyNumeric
-
psyAbs
PsyRealNumeric psyAbs()Description copied from interface:PsyNumeric
Returns thenumeric
absolute value of this object.- Specified by:
psyAbs
in interfacePsyNumeric
- Returns:
- the
numeric
absolute value of this object
-
psySqrt
Description copied from interface:PsyNumeric
Returns thenumeric
square root of this object.- Specified by:
psySqrt
in interfacePsyNumeric
- Returns:
- the
numeric
square root of this object
-
psyCbrt
Description copied from interface:PsyNumeric
Returns thenumeric
cubic root of this object.- Specified by:
psyCbrt
in interfacePsyNumeric
- Returns:
- the
numeric
cubic root of this object
-
psyExp
Description copied from interface:PsyNumeric
Returns thenumeric
exponent of this object.- Specified by:
psyExp
in interfacePsyNumeric
- Returns:
- the
numeric
exponent of this object
-
psyLog
Description copied from interface:PsyNumeric
Returns thenumeric
natural logarithm of this object.- Specified by:
psyLog
in interfacePsyNumeric
- Returns:
- the
numeric
natural logarithm of this object
-
psyCos
Description copied from interface:PsyNumeric
Returns thenumeric
cosine of this object.- Specified by:
psyCos
in interfacePsyNumeric
- Returns:
- the
numeric
cosine of this object
-
psySin
Description copied from interface:PsyNumeric
Returns thenumeric
sine of this object.- Specified by:
psySin
in interfacePsyNumeric
- Returns:
- the
numeric
sine of this object
-
psyTan
Description copied from interface:PsyNumeric
Returns thenumeric
tangent of this object.- Specified by:
psyTan
in interfacePsyNumeric
- Returns:
- the
numeric
tangent of this object
-
psyCosh
Description copied from interface:PsyNumeric
Returns thenumeric
hyperbolic cosine of this object.- Specified by:
psyCosh
in interfacePsyNumeric
- Returns:
- the
numeric
hyperbolic cosine of this object
-
psySinh
Description copied from interface:PsyNumeric
Returns thenumeric
hyperbolic sine of this object.- Specified by:
psySinh
in interfacePsyNumeric
- Returns:
- the
numeric
hyperbolic sine of this object
-
psyTanh
Description copied from interface:PsyNumeric
Returns thenumeric
hyperbolic tangent of this object.- Specified by:
psyTanh
in interfacePsyNumeric
- Returns:
- the
numeric
hyperbolic tangent of this object
-
psyAcos
Description copied from interface:PsyNumeric
Returns thenumeric
arc cosine of this object.- Specified by:
psyAcos
in interfacePsyNumeric
- Returns:
- the
numeric
arc cosine of this object
-
psyAsin
Description copied from interface:PsyNumeric
Returns thenumeric
arc sine of this object.- Specified by:
psyAsin
in interfacePsyNumeric
- Returns:
- the
numeric
arc sine of this object
-
psyAtan
Description copied from interface:PsyNumeric
Returns thenumeric
arc tangent of this object.- Specified by:
psyAtan
in interfacePsyNumeric
- Returns:
- the
numeric
arc tangent of this object
-
psyHypot
-
psyFloor
PsyRealNumeric psyFloor() -
psyCeiling
PsyRealNumeric psyCeiling() -
psyRound
PsyRealNumeric psyRound() -
psyEq
Description copied from interface:PsyObject
Returns aboolean
result of equality test of thisobject
and givenobject
. -
compareTo
Description copied from interface:PsyScalar
Compares thisscalar
with the specifiedscalar
for 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:
compareTo
in interfaceComparable<PsyRealNumeric>
- Specified by:
compareTo
in interfacePsyScalar<PsyRealNumeric>
- Parameters:
oRealNumeric
- thescalar
to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified.
-