Package coneforest.psylla.core
Interface PsyRealNumeric
-
- All Superinterfaces:
PsyAdditive<PsyNumeric>,PsyArithmetic<PsyNumeric>,PsyAtomic,PsyConvertableToInteger,PsyConvertableToName,PsyConvertableToReal,PsyConvertableToString,PsyNumeric,PsyObject,PsyScalar<PsyRealNumeric>
- All Known Subinterfaces:
PsyIntegral
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description static PsyOperator[]OPERATORS
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description doubledoubleValue()default doubleimagValue()Returns the real part of this object.intintValue()longlongValue()PsyRealNumericpsyAbs()Returns a Ψ-numericabsolute value of this object.default PsyRealpsyAcos()Returns a Ψ-numericrepresenting the arc cosine of this object.default PsyNumericpsyAdd(PsyNumeric oNumber)Returns a Ψ-additiverepresenting the result of arithmetic addition of given object to this object.PsyNumericpsyAdd(PsyRealNumeric oNumber)default PsyRealpsyAsin()Returns a Ψ-numericrepresenting the arc sine of this object.default PsyRealpsyAtan()Returns a Ψ-numericrepresenting the arc tangent of this object.default PsyRealpsyCbrt()Returns a Ψ-numericrepresenting the cubic root of this object.PsyRealNumericpsyCeiling()default PsyRealpsyCos()Returns a Ψ-numericrepresenting the cosine of this object.default PsyRealpsyCosh()Returns a Ψ-numericrepresenting the hyperbolic cosine of this object.default PsyNumericpsyDiv(PsyNumeric oNumber)Returns a result of arithmetic division of this object by given object.default PsyRealpsyDiv(PsyRealNumeric oNumber)default PsyBooleanpsyEq(PsyObject o)default PsyRealpsyExp()Returns a Ψ-numericrepresenting the exponent of this object.PsyRealNumericpsyFloor()default PsyBooleanpsyGe(PsyRealNumeric oNumeric)“Greater or equal” arithmetic comparison.default PsyBooleanpsyGt(PsyRealNumeric oNumeric)“Greater” arithmetic comparison.default PsyRealpsyHypot(PsyRealNumeric oNumeric)default PsyBooleanpsyLe(PsyRealNumeric oNumeric)“Less or equal” arithmetic comparison.default PsyRealpsyLog()Returns a Ψ-numericrepresenting the natural logarithm of this object.default PsyBooleanpsyLt(PsyRealNumeric oNumeric)“Less” arithmetic comparison.default PsyNumericpsyMul(PsyNumeric oNumber)Returns a result of arithmetic multiplication of given object by this object.PsyNumericpsyMul(PsyRealNumeric oNumber)PsyRealNumericpsyNeg()Returns a Ψ-additiverepresenting the result of arithmetic negation of this object.default PsyNumericpsyPow(PsyNumeric oNumber)default PsyRealpsyPow(PsyRealNumeric oNumber)PsyRealNumericpsyRound()PsyRealNumericpsySignum()Returns the signum of this object.default PsyRealpsySin()Returns a Ψ-numericrepresenting the sine of this object.default PsyRealpsySinh()Returns a Ψ-numericrepresenting the hyperbolic sine of this object.default PsyRealpsySqrt()Returns a Ψ-numericrepresenting the square root of this object.default PsyNumericpsySub(PsyNumeric oNumber)Returns a Ψ-additiverepresenting the result of arithmetic subtraction of given object from this object.PsyNumericpsySub(PsyRealNumeric oNumber)default PsyRealpsyTan()Returns a Ψ-numericrepresenting the tangent of this object.default PsyRealpsyTanh()Returns a Ψ-numericrepresenting the hyperbolic tangent of this object.default PsyIntegerpsyToInteger()default PsyRealpsyToReal()default doublerealValue()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
-
-
-
-
Field Detail
-
OPERATORS
static final PsyOperator[] OPERATORS
-
-
Method Detail
-
intValue
int intValue()
-
longValue
long longValue()
-
doubleValue
double doubleValue()
-
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.
-
psySignum
PsyRealNumeric psySignum()
Returns the signum of this object.- Returns:
- the Ψ-
realnumericsignum of this object.
-
psyToInteger
default PsyInteger psyToInteger() throws PsyException
- Specified by:
psyToIntegerin interfacePsyConvertableToInteger- Throws:
PsyException
-
psyToReal
default PsyReal psyToReal() throws PsyException
- Specified by:
psyToRealin interfacePsyConvertableToReal- Throws:
PsyException
-
psyNeg
PsyRealNumeric psyNeg()
Description copied from interface:PsyAdditiveReturns a Ψ-additiverepresenting the result of arithmetic negation of this object.- Specified by:
psyNegin interfacePsyAdditive<PsyNumeric>- Returns:
- a negation.
-
psyAdd
PsyNumeric psyAdd(PsyRealNumeric oNumber)
-
psyAdd
default PsyNumeric psyAdd(PsyNumeric oNumber)
Description copied from interface:PsyAdditiveReturns a Ψ-additiverepresenting the result of arithmetic addition of given object to this object.- Specified by:
psyAddin interfacePsyAdditive<PsyNumeric>- Parameters:
oNumber- given object.- Returns:
- a sum.
-
psySub
PsyNumeric psySub(PsyRealNumeric oNumber)
-
psySub
default PsyNumeric psySub(PsyNumeric oNumber)
Description copied from interface:PsyAdditiveReturns a Ψ-additiverepresenting the result of arithmetic subtraction of given object from this object.- Specified by:
psySubin interfacePsyAdditive<PsyNumeric>- Parameters:
oNumber- given object.- Returns:
- a difference.
-
psyMul
PsyNumeric psyMul(PsyRealNumeric oNumber)
-
psyMul
default PsyNumeric psyMul(PsyNumeric oNumber)
Description copied from interface:PsyArithmeticReturns a result of arithmetic multiplication of given object by this object.- Specified by:
psyMulin 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:PsyArithmeticReturns a result of arithmetic division of this object by given object.- Specified by:
psyDivin 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:
psyPowin interfacePsyNumeric- Throws:
PsyException
-
psyAbs
PsyRealNumeric psyAbs()
Description copied from interface:PsyNumericReturns a Ψ-numericabsolute value of this object.- Specified by:
psyAbsin interfacePsyNumeric- Returns:
- a Ψ-
numericabsolute value.
-
psySqrt
default PsyReal psySqrt()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the square root of this object.- Specified by:
psySqrtin interfacePsyNumeric- Returns:
- a Ψ-
numericsquare root of this number.
-
psyCbrt
default PsyReal psyCbrt()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the cubic root of this object.- Specified by:
psyCbrtin interfacePsyNumeric- Returns:
- a Ψ-
numericcubic root of this number.
-
psyExp
default PsyReal psyExp()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the exponent of this object.- Specified by:
psyExpin interfacePsyNumeric- Returns:
- a Ψ-
numericexponent.
-
psyLog
default PsyReal psyLog()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the natural logarithm of this object.- Specified by:
psyLogin interfacePsyNumeric- Returns:
- a Ψ-
numericlogarithm. value.
-
psyCos
default PsyReal psyCos()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the cosine of this object.- Specified by:
psyCosin interfacePsyNumeric- Returns:
- a Ψ-
numericcosine.
-
psySin
default PsyReal psySin()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the sine of this object.- Specified by:
psySinin interfacePsyNumeric- Returns:
- a Ψ-
numericsine.
-
psyTan
default PsyReal psyTan()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the tangent of this object.- Specified by:
psyTanin interfacePsyNumeric- Returns:
- a Ψ-
numerictangent.
-
psyCosh
default PsyReal psyCosh()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the hyperbolic cosine of this object.- Specified by:
psyCoshin interfacePsyNumeric- Returns:
- a Ψ-
numerichyperbolic cosine of this number.
-
psySinh
default PsyReal psySinh()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the hyperbolic sine of this object.- Specified by:
psySinhin interfacePsyNumeric- Returns:
- a Ψ-
numerichyperbolic sine of this number.
-
psyTanh
default PsyReal psyTanh()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the hyperbolic tangent of this object.- Specified by:
psyTanhin interfacePsyNumeric- Returns:
- a Ψ-
numerichyperbolic tangent of this number.
-
psyAcos
default PsyReal psyAcos()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the arc cosine of this object.- Specified by:
psyAcosin interfacePsyNumeric- Returns:
- a Ψ-
numericarc cosine.
-
psyAsin
default PsyReal psyAsin()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the arc sine of this object.- Specified by:
psyAsinin interfacePsyNumeric- Returns:
- a Ψ-
numericarc sine.
-
psyAtan
default PsyReal psyAtan()
Description copied from interface:PsyNumericReturns a Ψ-numericrepresenting the arc tangent of this object.- Specified by:
psyAtanin interfacePsyNumeric- Returns:
- a Ψ-
numericarcc 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:
psyLtin 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:
psyLein 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:
psyGtin interfacePsyScalar<PsyRealNumeric>- Parameters:
oNumeric- an object with which this object is compared.- Returns:
- a Ψ-
booleanresult of comparison.
-
psyGe
default PsyBoolean psyGe(PsyRealNumeric oNumeric)
“Greater or equal” arithmetic comparison.- Specified by:
psyGein interfacePsyScalar<PsyRealNumeric>- Parameters:
oNumeric- an object with which this object is compared.- Returns:
- a Ψ-
booleanresult of comparison.
-
-