Package coneforest.psylla.core
Interface PsyRealNumeric
- All Superinterfaces:
PsyAdditive<PsyNumeric>
,PsyArithmetic<PsyNumeric>
,PsyAtomic
,PsyConvertableToInteger
,PsyConvertableToIntegral
,PsyConvertableToName
,PsyConvertableToReal
,PsyConvertableToString
,PsyMultiplicative<PsyNumeric>
,PsyNumeric
,PsyObject
,PsyScalar<PsyRealNumeric>
- All Known Subinterfaces:
PsyIntegral
,PsyRational
- All Known Implementing Classes:
PsyBigFractional
,PsyBigInteger
,PsyFractional
,PsyInteger
,PsyReal
public interface PsyRealNumeric
extends PsyNumeric, PsyConvertableToInteger, PsyConvertableToIntegral, PsyConvertableToReal, PsyScalar<PsyRealNumeric>
A representation of
realnumeric
object, an abstraction of real
numbers.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondouble
default double
Returns the real part of this object.int
intValue()
long
psyAbs()
Returns anumeric
absolute value of this object.default PsyReal
psyAcos()
Returns anumeric
representing the arc cosine of this object.default PsyNumeric
psyAdd
(PsyNumeric oNumber) Returns anadditive
representing the result of arithmetic addition of given object to this object.psyAdd
(PsyRealNumeric oNumber) default PsyReal
psyAsin()
Returns anumeric
representing the arc sine of this object.default PsyReal
psyAtan()
Returns anumeric
representing the arc tangent of this object.default PsyReal
psyCbrt()
Returns anumeric
representing the cubic root of this object.default PsyReal
psyCos()
Returns anumeric
representing the cosine of this object.default PsyReal
psyCosh()
Returns anumeric
representing the hyperbolic cosine of this object.default PsyNumeric
psyDiv
(PsyNumeric oNumber) Returns a result of arithmetic division of this object by given object.psyDiv
(PsyRealNumeric oNumber) default PsyBoolean
default PsyReal
psyExp()
Returns anumeric
representing the exponent of this object.psyFloor()
default PsyBoolean
psyGe
(PsyRealNumeric oNumeric) The “Greater or equal” arithmetic comparison.default PsyBoolean
psyGt
(PsyRealNumeric oNumeric) The “greater” arithmetic comparison.default PsyReal
psyHypot
(PsyRealNumeric oNumeric) default PsyBoolean
psyLe
(PsyRealNumeric oNumeric) The “less or equal” arithmetic comparison.default PsyReal
psyLog()
Returns anumeric
representing the natural logarithm of this object.default PsyBoolean
psyLt
(PsyRealNumeric oNumeric) The “less” arithmetic comparison.default PsyNumeric
psyMul
(PsyNumeric oNumber) Returns a result of arithmetic multiplication of given object by this object.psyMul
(PsyRealNumeric oNumber) psyNeg()
Returns anadditive
representing the result of arithmetic negation of this object.default PsyNumeric
psyPow
(PsyNumeric oNumber) default PsyReal
psyPow
(PsyRealNumeric oNumber) psyRound()
Returns the signum of this object.default PsyReal
psySin()
Returns anumeric
representing the sine of this object.default PsyReal
psySinh()
Returns anumeric
representing the hyperbolic sine of this object.default PsyReal
psySqrt()
Returns anumeric
representing the square root of this object.default PsyNumeric
psySub
(PsyNumeric oNumber) Returns anadditive
representing the result of arithmetic subtraction of given object from this object.psySub
(PsyRealNumeric oNumber) default PsyReal
psyTan()
Returns anumeric
representing the tangent of this object.default PsyReal
psyTanh()
Returns anumeric
representing the hyperbolic tangent of this object.default PsyInteger
default PsyReal
default double
Returns the real part of this object.Methods inherited from interface coneforest.psylla.core.PsyAdditive
psyIsZero, psyNotZero
Methods inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
psyToIntegral
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Field Details
-
OPERATORS
-
-
Method Details
-
intValue
int intValue() -
longValue
long longValue() -
doubleValue
double doubleValue() -
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.
-
imagValue
default double imagValue()Description copied from interface:PsyNumeric
Returns the real part of this object.- Specified by:
imagValue
in interfacePsyNumeric
- Returns:
- the imaginary part.
-
psySignum
PsyRealNumeric psySignum()Returns the signum of this object.- Returns:
- the
realnumeric
signum of this object.
-
psyToInteger
- Specified by:
psyToInteger
in interfacePsyConvertableToInteger
- Throws:
PsyErrorException
-
psyToReal
- Specified by:
psyToReal
in interfacePsyConvertableToReal
- Throws:
PsyErrorException
-
psyNeg
PsyRealNumeric psyNeg()Description copied from interface:PsyAdditive
Returns anadditive
representing the result of arithmetic negation of this object.- Specified by:
psyNeg
in interfacePsyAdditive<PsyNumeric>
- Returns:
- a negation.
-
psyAdd
-
psyAdd
Description copied from interface:PsyAdditive
Returns anadditive
representing the result of arithmetic addition of given object to this object.- Specified by:
psyAdd
in interfacePsyAdditive<PsyNumeric>
- Parameters:
oNumber
- given object.- Returns:
- a sum.
-
psySub
-
psySub
Description copied from interface:PsyAdditive
Returns anadditive
representing the result of arithmetic subtraction of given object from this object.- Specified by:
psySub
in interfacePsyAdditive<PsyNumeric>
- Parameters:
oNumber
- given object.- Returns:
- a difference.
-
psyMul
-
psyMul
Description copied from interface:PsyMultiplicative
Returns a result of arithmetic multiplication of given object by this object.- Specified by:
psyMul
in interfacePsyMultiplicative<PsyNumeric>
- Parameters:
oNumber
- a given object.- Returns:
- a product.
-
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:
oNumber
- a given object.- Returns:
- a fraction.
- Throws:
PsyUndefinedResultException
-
psyPow
-
psyPow
- Specified by:
psyPow
in interfacePsyNumeric
- Throws:
PsyErrorException
-
psyAbs
PsyRealNumeric psyAbs()Description copied from interface:PsyNumeric
Returns anumeric
absolute value of this object.- Specified by:
psyAbs
in interfacePsyNumeric
- Returns:
- a
numeric
absolute value.
-
psySqrt
Description copied from interface:PsyNumeric
Returns anumeric
representing the square root of this object.- Specified by:
psySqrt
in interfacePsyNumeric
- Returns:
- a
numeric
square root of this number.
-
psyCbrt
Description copied from interface:PsyNumeric
Returns anumeric
representing the cubic root of this object.- Specified by:
psyCbrt
in interfacePsyNumeric
- Returns:
- a
numeric
cubic root of this number.
-
psyExp
Description copied from interface:PsyNumeric
Returns anumeric
representing the exponent of this object.- Specified by:
psyExp
in interfacePsyNumeric
- Returns:
- a
numeric
exponent.
-
psyLog
Description copied from interface:PsyNumeric
Returns anumeric
representing the natural logarithm of this object.- Specified by:
psyLog
in interfacePsyNumeric
- Returns:
- a
numeric
logarithm.
-
psyCos
Description copied from interface:PsyNumeric
Returns anumeric
representing the cosine of this object.- Specified by:
psyCos
in interfacePsyNumeric
- Returns:
- a
numeric
cosine.
-
psySin
Description copied from interface:PsyNumeric
Returns anumeric
representing the sine of this object.- Specified by:
psySin
in interfacePsyNumeric
- Returns:
- a
numeric
sine.
-
psyTan
Description copied from interface:PsyNumeric
Returns anumeric
representing the tangent of this object.- Specified by:
psyTan
in interfacePsyNumeric
- Returns:
- a
numeric
tangent.
-
psyCosh
Description copied from interface:PsyNumeric
Returns anumeric
representing the hyperbolic cosine of this object.- Specified by:
psyCosh
in interfacePsyNumeric
- Returns:
- a
numeric
hyperbolic cosine of this number.
-
psySinh
Description copied from interface:PsyNumeric
Returns anumeric
representing the hyperbolic sine of this object.- Specified by:
psySinh
in interfacePsyNumeric
- Returns:
- a
numeric
hyperbolic sine of this number.
-
psyTanh
Description copied from interface:PsyNumeric
Returns anumeric
representing the hyperbolic tangent of this object.- Specified by:
psyTanh
in interfacePsyNumeric
- Returns:
- a
numeric
hyperbolic tangent of this number.
-
psyAcos
Description copied from interface:PsyNumeric
Returns anumeric
representing the arc cosine of this object.- Specified by:
psyAcos
in interfacePsyNumeric
- Returns:
- a
numeric
arc cosine.
-
psyAsin
Description copied from interface:PsyNumeric
Returns anumeric
representing the arc sine of this object.- Specified by:
psyAsin
in interfacePsyNumeric
- Returns:
- a
numeric
arc sine.
-
psyAtan
Description copied from interface:PsyNumeric
Returns anumeric
representing the arc tangent of this object.- Specified by:
psyAtan
in interfacePsyNumeric
- Returns:
- a
numeric
arc tangent.
-
psyHypot
-
psyFloor
PsyRealNumeric psyFloor() -
psyRound
PsyRealNumeric psyRound() -
psyCeiling
PsyRealNumeric psyCeiling() -
psyEq
-
psyLt
The “less” arithmetic comparison.- Specified by:
psyLt
in interfacePsyScalar<PsyRealNumeric>
- Parameters:
oNumeric
- an object with which this object is compared.- Returns:
- a Ψ boolean value indicating if this object is less than given object.
-
psyLe
The “less or equal” arithmetic comparison.- Specified by:
psyLe
in interfacePsyScalar<PsyRealNumeric>
- Parameters:
oNumeric
- an object with which this object is compared.- Returns:
- a Ψ boolean value indicating if this object is less than or equal to given object.
-
psyGt
The “greater” arithmetic comparison.- Specified by:
psyGt
in interfacePsyScalar<PsyRealNumeric>
- Parameters:
oNumeric
- an object with which this object is compared.- Returns:
- a
boolean
result of comparison.
-
psyGe
The “Greater or equal” arithmetic comparison.- Specified by:
psyGe
in interfacePsyScalar<PsyRealNumeric>
- Parameters:
oNumeric
- an object with which this object is compared.- Returns:
- a
boolean
result of comparison.
-