- All Superinterfaces:
PsyAdditive<PsyNumeric>,PsyArithmetic<PsyNumeric>,PsyAtomic,PsyMultiplicative<PsyNumeric>,PsyObject
- All Known Subinterfaces:
PsyIntegral,PsyRational,PsyRealNumeric
- All Known Implementing Classes:
PsyBigFraction,PsyBigInteger,PsyComplex,PsyFraction,PsyInteger,PsyReal
@Type("numeric")
public sealed interface PsyNumeric
extends PsyAtomic, PsyArithmetic<PsyNumeric>
permits PsyComplex, PsyRealNumeric
The representation of
numeric, an abstraction of complex and real numbers.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextActionContext action of theabsoperator.static final ContextActionContext action of theacosoperator.static final ContextActionContext action of theasinoperator.static final ContextActionContext action of theatanoperator.static final ContextActionContext action of thecbrtoperator.static final ContextActionContext action of thecosoperator.static final ContextActionContext action of thecoshoperator.static final ContextActionContext action of theexpoperator.static final ContextActionContext action of thelogoperator.static final ContextActionContext action of thepowoperator.static final ContextActionContext action of thesignumoperator.static final ContextActionContext action of thesinoperator.static final ContextActionContext action of thesinhoperator.static final ContextActionContext action of thesqrtoperator.static final ContextActionContext action of thetanoperator.static final ContextActionContext action of thetanhoperator.Fields inherited from interface coneforest.psylla.core.PsyAdditive
PSY_ADD, PSY_ISZERO, PSY_NEG, PSY_NONZERO, PSY_SUBFields inherited from interface coneforest.psylla.core.PsyMultiplicative
PSY_DIV, PSY_MUL, PSY_RECIPROCALFields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPE -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the real part of this object.psyAbs()Returns thenumericabsolute value of this object.psyAcos()Returns thenumericarc cosine of this object.psyAsin()Returns thenumericarc sine of this object.psyAtan()Returns thenumericarc tangent of this object.psyCbrt()Returns thenumericcubic root of this object.psyCos()Returns thenumericcosine of this object.psyCosh()Returns thenumerichyperbolic cosine of this object.psyExp()Returns thenumericexponent of this object.psyLog()Returns thenumericnatural logarithm of this object.psyPow(PsyNumeric oNumeric) Returns thenumericsignum of this object.psySin()Returns thenumericsine of this object.psySinh()Returns thenumerichyperbolic sine of this object.psySqrt()Returns thenumericsquare root of this object.psyTan()Returns thenumerictangent of this object.psyTanh()Returns thenumerichyperbolic tangent of this object.doubleReturns the real part of this object.Methods inherited from interface coneforest.psylla.core.PsyAdditive
psyAdd, psyIsZero, psyNeg, psyNonZero, psySubMethods inherited from interface coneforest.psylla.core.PsyMultiplicative
psyDiv, psyMul, psyReciprocalMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Field Details
-
PSY_ABS
Context action of theabsoperator. -
PSY_ACOS
Context action of theacosoperator. -
PSY_ASIN
Context action of theasinoperator. -
PSY_ATAN
Context action of theatanoperator. -
PSY_CBRT
Context action of thecbrtoperator. -
PSY_COS
Context action of thecosoperator. -
PSY_COSH
Context action of thecoshoperator. -
PSY_EXP
Context action of theexpoperator. -
PSY_LOG
Context action of thelogoperator. -
PSY_POW
Context action of thepowoperator. -
PSY_SIGNUM
Context action of thesignumoperator. -
PSY_SIN
Context action of thesinoperator. -
PSY_SINH
Context action of thesinhoperator. -
PSY_SQRT
Context action of thesqrtoperator. -
PSY_TAN
Context action of thetanoperator. -
PSY_TANH
Context action of thetanhoperator.
-
-
Method Details
-
realValue
double realValue()Returns the real part of this object.- Returns:
- the real part.
-
imagValue
double imagValue()Returns the real part of this object.- Returns:
- the imaginary part.
-
psyAbs
PsyRealNumeric psyAbs()Returns thenumericabsolute value of this object.- Returns:
- the
numericabsolute value.
-
psySignum
PsyNumeric psySignum()Returns thenumericsignum of this object.- Returns:
- the
numericsignum.
-
psyPow
-
psyExp
PsyNumeric psyExp()Returns thenumericexponent of this object.- Returns:
- the
numericexponent.
-
psyCos
PsyNumeric psyCos()Returns thenumericcosine of this object.- Returns:
- the
numericcosine.
-
psySin
PsyNumeric psySin()Returns thenumericsine of this object.- Returns:
- the
numericsine.
-
psyTan
PsyNumeric psyTan()Returns thenumerictangent of this object.- Returns:
- the
numerictangent.
-
psyLog
PsyNumeric psyLog()Returns thenumericnatural logarithm of this object.- Returns:
- the
numericnatural logarithm.
-
psyAcos
PsyNumeric psyAcos()Returns thenumericarc cosine of this object.- Returns:
- the
numericarc cosine.
-
psyAsin
PsyNumeric psyAsin()Returns thenumericarc sine of this object.- Returns:
- the
numericarc sine.
-
psyAtan
PsyNumeric psyAtan()Returns thenumericarc tangent of this object.- Returns:
- the
numericarc tangent.
-
psySqrt
PsyNumeric psySqrt()Returns thenumericsquare root of this object.- Returns:
- the
numericsquare root.
-
psyCbrt
PsyNumeric psyCbrt()Returns thenumericcubic root of this object.- Returns:
- the
numericcubic root.
-
psyCosh
PsyNumeric psyCosh()Returns thenumerichyperbolic cosine of this object.- Returns:
- the
numerichyperbolic cosine.
-
psySinh
PsyNumeric psySinh()Returns thenumerichyperbolic sine of this object.- Returns:
- the
numerichyperbolic sine.
-
psyTanh
PsyNumeric psyTanh()Returns thenumerichyperbolic tangent of this object.- Returns:
- the
numerichyperbolic tangent.
-