Package coneforest.psylla.core
Interface PsyRealNumeric
-
- All Superinterfaces:
PsyAdditive<PsyNumeric>,PsyArithmetic<PsyNumeric>,PsyAtomic,PsyConvertableToInteger,PsyConvertableToIntegral,PsyConvertableToName,PsyConvertableToReal,PsyConvertableToString,PsyNumeric,PsyObject,PsyScalar<PsyRealNumeric>
- All Known Subinterfaces:
PsyIntegral
- All Known Implementing Classes:
PsyBigInteger,PsyInteger,PsyReal
public interface PsyRealNumeric extends PsyNumeric, PsyConvertableToInteger, PsyConvertableToIntegral, PsyConvertableToReal, PsyScalar<PsyRealNumeric>
A representation ofrealnumericobject, 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 anumericabsolute value of this object.default PsyRealpsyAcos()Returns anumericrepresenting the arc cosine of this object.default PsyNumericpsyAdd(PsyNumeric oNumber)Returns anadditiverepresenting the result of arithmetic addition of given object to this object.PsyRealNumericpsyAdd(PsyRealNumeric oNumber)default PsyRealpsyAsin()Returns anumericrepresenting the arc sine of this object.default PsyRealpsyAtan()Returns anumericrepresenting the arc tangent of this object.default PsyRealpsyCbrt()Returns anumericrepresenting the cubic root of this object.PsyRealNumericpsyCeiling()default PsyRealpsyCos()Returns anumericrepresenting the cosine of this object.default PsyRealpsyCosh()Returns anumericrepresenting 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 anumericrepresenting 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 anumericrepresenting 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.PsyRealNumericpsyMul(PsyRealNumeric oNumber)PsyRealNumericpsyNeg()Returns anadditiverepresenting 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 anumericrepresenting the sine of this object.default PsyRealpsySinh()Returns anumericrepresenting the hyperbolic sine of this object.default PsyRealpsySqrt()Returns anumericrepresenting the square root of this object.default PsyNumericpsySub(PsyNumeric oNumber)Returns anadditiverepresenting the result of arithmetic subtraction of given object from this object.PsyRealNumericpsySub(PsyRealNumeric oNumber)default PsyRealpsyTan()Returns anumericrepresenting the tangent of this object.default PsyRealpsyTanh()Returns anumericrepresenting 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.PsyConvertableToIntegral
psyToIntegral
-
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 PsyErrorException
- Specified by:
psyToIntegerin interfacePsyConvertableToInteger- Throws:
PsyErrorException
-
psyToReal
default PsyReal psyToReal() throws PsyErrorException
- Specified by:
psyToRealin interfacePsyConvertableToReal- Throws:
PsyErrorException
-
psyNeg
PsyRealNumeric psyNeg()
Description copied from interface:PsyAdditiveReturns anadditiverepresenting the result of arithmetic negation of this object.- Specified by:
psyNegin interfacePsyAdditive<PsyNumeric>- Returns:
- a negation.
-
psyAdd
PsyRealNumeric psyAdd(PsyRealNumeric oNumber)
-
psyAdd
default PsyNumeric psyAdd(PsyNumeric oNumber)
Description copied from interface:PsyAdditiveReturns anadditiverepresenting the result of arithmetic addition of given object to this object.- Specified by:
psyAddin interfacePsyAdditive<PsyNumeric>- Parameters:
oNumber- given object.- Returns:
- a sum.
-
psySub
PsyRealNumeric psySub(PsyRealNumeric oNumber)
-
psySub
default PsyNumeric psySub(PsyNumeric oNumber)
Description copied from interface:PsyAdditiveReturns anadditiverepresenting the result of arithmetic subtraction of given object from this object.- Specified by:
psySubin interfacePsyAdditive<PsyNumeric>- Parameters:
oNumber- given object.- Returns:
- a difference.
-
psyMul
PsyRealNumeric 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 PsyErrorException
- Specified by:
psyPowin interfacePsyNumeric- Throws:
PsyErrorException
-
psyAbs
PsyRealNumeric psyAbs()
Description copied from interface:PsyNumericReturns anumericabsolute value of this object.- Specified by:
psyAbsin interfacePsyNumeric- Returns:
- a
numericabsolute value.
-
psySqrt
default PsyReal psySqrt()
Description copied from interface:PsyNumericReturns anumericrepresenting 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 anumericrepresenting 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 anumericrepresenting the exponent of this object.- Specified by:
psyExpin interfacePsyNumeric- Returns:
- a
numericexponent.
-
psyLog
default PsyReal psyLog()
Description copied from interface:PsyNumericReturns anumericrepresenting the natural logarithm of this object.- Specified by:
psyLogin interfacePsyNumeric- Returns:
- a
numericlogarithm.
-
psyCos
default PsyReal psyCos()
Description copied from interface:PsyNumericReturns anumericrepresenting the cosine of this object.- Specified by:
psyCosin interfacePsyNumeric- Returns:
- a
numericcosine.
-
psySin
default PsyReal psySin()
Description copied from interface:PsyNumericReturns anumericrepresenting the sine of this object.- Specified by:
psySinin interfacePsyNumeric- Returns:
- a
numericsine.
-
psyTan
default PsyReal psyTan()
Description copied from interface:PsyNumericReturns anumericrepresenting the tangent of this object.- Specified by:
psyTanin interfacePsyNumeric- Returns:
- a
numerictangent.
-
psyCosh
default PsyReal psyCosh()
Description copied from interface:PsyNumericReturns anumericrepresenting 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 anumericrepresenting 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 anumericrepresenting 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 anumericrepresenting the arc cosine of this object.- Specified by:
psyAcosin interfacePsyNumeric- Returns:
- a
numericarc cosine.
-
psyAsin
default PsyReal psyAsin()
Description copied from interface:PsyNumericReturns anumericrepresenting the arc sine of this object.- Specified by:
psyAsinin interfacePsyNumeric- Returns:
- a
numericarc sine.
-
psyAtan
default PsyReal psyAtan()
Description copied from interface:PsyNumericReturns anumericrepresenting the arc tangent of this object.- Specified by:
psyAtanin interfacePsyNumeric- Returns:
- a
numericarc 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.
-
-