Package coneforest.psylla.core
Interface PsyNumeric
- All Superinterfaces:
PsyAdditive<PsyNumeric>
,PsyArithmetic<PsyNumeric>
,PsyAtomic
,PsyConvertableToName
,PsyConvertableToString
,PsyMultiplicative<PsyNumeric>
,PsyObject
- All Known Subinterfaces:
PsyIntegral
,PsyRational
,PsyRealNumeric
- All Known Implementing Classes:
PsyBigFractional
,PsyBigInteger
,PsyComplex
,PsyFractional
,PsyInteger
,PsyReal
A representation of
numeric
, an abstraction of complex and real
numbers.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the real part of this object.psyAbs()
Returns anumeric
absolute value of this object.psyAcos()
Returns anumeric
representing the arc cosine of this object.psyAsin()
Returns anumeric
representing the arc sine of this object.psyAtan()
Returns anumeric
representing the arc tangent of this object.psyCbrt()
Returns anumeric
representing the cubic root of this object.psyCos()
Returns anumeric
representing the cosine of this object.psyCosh()
Returns anumeric
representing the hyperbolic cosine of this object.psyExp()
Returns anumeric
representing the exponent of this object.psyLog()
Returns anumeric
representing the natural logarithm of this object.psyPow
(PsyNumeric oNumeric) Returns the signum of this object.psySin()
Returns anumeric
representing the sine of this object.psySinh()
Returns anumeric
representing the hyperbolic sine of this object.psySqrt()
Returns anumeric
representing the square root of this object.psyTan()
Returns anumeric
representing the tangent of this object.psyTanh()
Returns anumeric
representing the hyperbolic tangent of this object.double
Returns the real part of this object.Methods inherited from interface coneforest.psylla.core.PsyAdditive
psyAdd, psyIsZero, psyNeg, psyNotZero, psySub
Methods inherited from interface coneforest.psylla.core.PsyMultiplicative
psyDiv, psyMul
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Field Details
-
OPERATORS
-
-
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 anumeric
absolute value of this object.- Returns:
- a
numeric
absolute value.
-
psySignum
PsyNumeric psySignum()Returns the signum of this object.- Returns:
- the
numeric
signum of this object.
-
psyPow
- Throws:
PsyErrorException
-
psyExp
PsyNumeric psyExp()Returns anumeric
representing the exponent of this object.- Returns:
- a
numeric
exponent.
-
psyCos
PsyNumeric psyCos()Returns anumeric
representing the cosine of this object.- Returns:
- a
numeric
cosine.
-
psySin
PsyNumeric psySin()Returns anumeric
representing the sine of this object.- Returns:
- a
numeric
sine.
-
psyTan
PsyNumeric psyTan()Returns anumeric
representing the tangent of this object.- Returns:
- a
numeric
tangent.
-
psyLog
PsyNumeric psyLog()Returns anumeric
representing the natural logarithm of this object.- Returns:
- a
numeric
logarithm.
-
psyAcos
PsyNumeric psyAcos()Returns anumeric
representing the arc cosine of this object.- Returns:
- a
numeric
arc cosine.
-
psyAsin
PsyNumeric psyAsin()Returns anumeric
representing the arc sine of this object.- Returns:
- a
numeric
arc sine.
-
psyAtan
PsyNumeric psyAtan()Returns anumeric
representing the arc tangent of this object.- Returns:
- a
numeric
arc tangent.
-
psySqrt
PsyNumeric psySqrt()Returns anumeric
representing the square root of this object.- Returns:
- a
numeric
square root of this number.
-
psyCbrt
PsyNumeric psyCbrt()Returns anumeric
representing the cubic root of this object.- Returns:
- a
numeric
cubic root of this number.
-
psyCosh
PsyNumeric psyCosh()Returns anumeric
representing the hyperbolic cosine of this object.- Returns:
- a
numeric
hyperbolic cosine of this number.
-
psySinh
PsyNumeric psySinh()Returns anumeric
representing the hyperbolic sine of this object.- Returns:
- a
numeric
hyperbolic sine of this number.
-
psyTanh
PsyNumeric psyTanh()Returns anumeric
representing the hyperbolic tangent of this object.- Returns:
- a
numeric
hyperbolic tangent of this number.
-