Package coneforest.psylla.core
Interface PsyRealNumeric
-
- All Superinterfaces:
PsyAdditive<PsyNumeric>
,PsyArithmetic<PsyNumeric>
,PsyAtomic
,PsyConvertableToInteger
,PsyConvertableToName
,PsyConvertableToReal
,PsyConvertableToString
,PsyNumeric
,PsyObject
,PsyScalar<PsyRealNumeric>
- All Known Implementing Classes:
PsyBigInteger
,PsyInteger
,PsyReal
public interface PsyRealNumeric extends PsyNumeric, PsyConvertableToInteger, PsyConvertableToReal, PsyScalar<PsyRealNumeric>
A representation of Ψ-realnumeric
, an abstraction of real numbers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description double
doubleValue()
default double
imagValue()
Returns the real part of this object.int
intValue()
long
longValue()
PsyRealNumeric
psyAbs()
Returns a Ψ-numeric
absolute value of this object.default PsyReal
psyAcos()
Returns a Ψ-numeric
representing the arc cosine of this object.default PsyNumeric
psyAdd(PsyNumeric oNumber)
Returns a Ψ-additive
representing the result of arithmetic addition of given object to this object.PsyNumeric
psyAdd(PsyRealNumeric oNumber)
default PsyReal
psyAsin()
Returns a Ψ-numeric
representing the arc sine of this object.default PsyReal
psyAtan()
Returns a Ψ-numeric
representing the arc tangent of this object.default PsyReal
psyCbrt()
Returns a Ψ-numeric
representing the cubic root of this object.PsyRealNumeric
psyCeiling()
default PsyReal
psyCos()
Returns a Ψ-numeric
representing the cosine of this object.default PsyReal
psyCosh()
Returns a Ψ-numeric
representing the hyperbolic cosine of this object.default PsyNumeric
psyDiv(PsyNumeric oNumber)
Returns a result of arithmetic division of this object by given object.default PsyReal
psyDiv(PsyRealNumeric oNumber)
default PsyBoolean
psyEq(PsyObject o)
default PsyReal
psyExp()
Returns a Ψ-numeric
representing the exponent of this object.PsyRealNumeric
psyFloor()
default PsyBoolean
psyGe(PsyRealNumeric oNumeric)
“Greater or equal” arithmetic comparison.default PsyBoolean
psyGt(PsyRealNumeric oNumeric)
“Greater” arithmetic comparison.default PsyReal
psyHypot(PsyRealNumeric oNumeric)
default PsyBoolean
psyLe(PsyRealNumeric oNumeric)
“Less or equal” arithmetic comparison.default PsyReal
psyLog()
Returns a Ψ-numeric
representing the natural logarithm of this object.default PsyBoolean
psyLt(PsyRealNumeric oNumeric)
“Less” arithmetic comparison.default PsyNumeric
psyMul(PsyNumeric oNumber)
Returns a result of arithmetic multiplication of given object by this object.PsyNumeric
psyMul(PsyRealNumeric oNumber)
PsyRealNumeric
psyNeg()
Returns a Ψ-additive
representing the result of arithmetic negation of this object.default PsyNumeric
psyPow(PsyNumeric oNumber)
default PsyReal
psyPow(PsyRealNumeric oNumber)
PsyRealNumeric
psyRound()
PsyRealNumeric
psySignum()
Returns the signum of this object.default PsyReal
psySin()
Returns a Ψ-numeric
representing the sine of this object.default PsyReal
psySinh()
Returns a Ψ-numeric
representing the hyperbolic sine of this object.default PsyReal
psySqrt()
Returns a Ψ-numeric
representing the square root of this object.default PsyNumeric
psySub(PsyNumeric oNumber)
Returns a Ψ-additive
representing the result of arithmetic subtraction of given object from this object.PsyNumeric
psySub(PsyRealNumeric oNumber)
default PsyReal
psyTan()
Returns a Ψ-numeric
representing the tangent of this object.default PsyReal
psyTanh()
Returns a Ψ-numeric
representing the hyperbolic tangent of this object.default PsyInteger
psyToInteger()
default PsyReal
psyToReal()
default double
realValue()
Returns the real part of this object.-
Methods inherited from interface coneforest.psylla.core.PsyArithmetic
psyIsZero, psyNotZero
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
-
-
-
Method Detail
-
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
default PsyInteger psyToInteger() throws PsyException
- Specified by:
psyToInteger
in interfacePsyConvertableToInteger
- Throws:
PsyException
-
psyToReal
default PsyReal psyToReal() throws PsyException
- Specified by:
psyToReal
in interfacePsyConvertableToReal
- Throws:
PsyException
-
psyNeg
PsyRealNumeric psyNeg()
Description copied from interface:PsyAdditive
Returns a Ψ-additive
representing the result of arithmetic negation of this object.- Specified by:
psyNeg
in interfacePsyAdditive<PsyNumeric>
- Returns:
- a negation.
-
psyAdd
PsyNumeric psyAdd(PsyRealNumeric oNumber)
-
psyAdd
default PsyNumeric psyAdd(PsyNumeric oNumber)
Description copied from interface:PsyAdditive
Returns a Ψ-additive
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
PsyNumeric psySub(PsyRealNumeric oNumber)
-
psySub
default PsyNumeric psySub(PsyNumeric oNumber)
Description copied from interface:PsyAdditive
Returns a Ψ-additive
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
PsyNumeric psyMul(PsyRealNumeric oNumber)
-
psyMul
default PsyNumeric psyMul(PsyNumeric oNumber)
Description copied from interface:PsyArithmetic
Returns a result of arithmetic multiplication of given object by this object.- Specified by:
psyMul
in interfacePsyArithmetic<PsyNumeric>
- Parameters:
oNumber
- a given object.- Returns:
- a product.
-
psyDiv
default PsyReal psyDiv(PsyRealNumeric oNumber)
-
psyDiv
default PsyNumeric psyDiv(PsyNumeric oNumber)
Description copied from interface:PsyArithmetic
Returns a result of arithmetic division of this object by given object.- Specified by:
psyDiv
in interfacePsyArithmetic<PsyNumeric>
- Parameters:
oNumber
- a given object.- Returns:
- a fraction.
-
psyPow
default PsyReal psyPow(PsyRealNumeric oNumber)
-
psyPow
default PsyNumeric psyPow(PsyNumeric oNumber) throws PsyException
- Specified by:
psyPow
in interfacePsyNumeric
- Throws:
PsyException
-
psyAbs
PsyRealNumeric psyAbs()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
absolute value of this object.- Specified by:
psyAbs
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
absolute value.
-
psySqrt
default PsyReal psySqrt()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the square root of this object.- Specified by:
psySqrt
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
square root of this number.
-
psyCbrt
default PsyReal psyCbrt()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the cubic root of this object.- Specified by:
psyCbrt
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
cubic root of this number.
-
psyExp
default PsyReal psyExp()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the exponent of this object.- Specified by:
psyExp
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
exponent.
-
psyLog
default PsyReal psyLog()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the natural logarithm of this object.- Specified by:
psyLog
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
logarithm. value.
-
psyCos
default PsyReal psyCos()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the cosine of this object.- Specified by:
psyCos
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
cosine.
-
psySin
default PsyReal psySin()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the sine of this object.- Specified by:
psySin
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
sine.
-
psyTan
default PsyReal psyTan()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the tangent of this object.- Specified by:
psyTan
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
tangent.
-
psyCosh
default PsyReal psyCosh()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the hyperbolic cosine of this object.- Specified by:
psyCosh
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
hyperbolic cosine of this number.
-
psySinh
default PsyReal psySinh()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the hyperbolic sine of this object.- Specified by:
psySinh
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
hyperbolic sine of this number.
-
psyTanh
default PsyReal psyTanh()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the hyperbolic tangent of this object.- Specified by:
psyTanh
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
hyperbolic tangent of this number.
-
psyAcos
default PsyReal psyAcos()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the arc cosine of this object.- Specified by:
psyAcos
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
arc cosine.
-
psyAsin
default PsyReal psyAsin()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the arc sine of this object.- Specified by:
psyAsin
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
arc sine.
-
psyAtan
default PsyReal psyAtan()
Description copied from interface:PsyNumeric
Returns a Ψ-numeric
representing the arc tangent of this object.- Specified by:
psyAtan
in interfacePsyNumeric
- Returns:
- a Ψ-
numeric
arcc tangent.
-
psyHypot
default PsyReal psyHypot(PsyRealNumeric oNumeric)
-
psyFloor
PsyRealNumeric psyFloor()
-
psyRound
PsyRealNumeric psyRound()
-
psyCeiling
PsyRealNumeric psyCeiling()
-
psyEq
default PsyBoolean psyEq(PsyObject o)
-
psyLt
default PsyBoolean psyLt(PsyRealNumeric oNumeric)
“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
default PsyBoolean psyLe(PsyRealNumeric oNumeric)
“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
default PsyBoolean psyGt(PsyRealNumeric oNumeric)
“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
default PsyBoolean psyGe(PsyRealNumeric oNumeric)
“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.
-
-