Package coneforest.psylla.core
Interface PsyNumeric
-
- All Superinterfaces:
PsyAdditive<PsyNumeric>,PsyArithmetic<PsyNumeric>,PsyAtomic,PsyConvertableToName,PsyConvertableToString,PsyObject
- All Known Subinterfaces:
PsyIntegral,PsyRealNumeric
- All Known Implementing Classes:
PsyBigInteger,PsyComplex,PsyInteger,PsyReal
public interface PsyNumeric extends PsyAtomic, PsyArithmetic<PsyNumeric>
A representation ofnumeric, an abstraction of complex and real numbers.
-
-
Field Summary
Fields Modifier and Type Field Description static PsyOperator[]OPERATORS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubleimagValue()Returns the real part of this object.PsyRealNumericpsyAbs()Returns anumericabsolute value of this object.PsyNumericpsyAcos()Returns anumericrepresenting the arc cosine of this object.PsyNumericpsyAsin()Returns anumericrepresenting the arc sine of this object.PsyNumericpsyAtan()Returns anumericrepresenting the arc tangent of this object.PsyNumericpsyCbrt()Returns anumericrepresenting the cubic root of this object.PsyNumericpsyCos()Returns anumericrepresenting the cosine of this object.PsyNumericpsyCosh()Returns anumericrepresenting the hyperbolic cosine of this object.PsyNumericpsyExp()Returns anumericrepresenting the exponent of this object.PsyNumericpsyLog()Returns anumericrepresenting the natural logarithm of this object.PsyNumericpsyPow(PsyNumeric oNumeric)PsyNumericpsySin()Returns anumericrepresenting the sine of this object.PsyNumericpsySinh()Returns anumericrepresenting the hyperbolic sine of this object.PsyNumericpsySqrt()Returns anumericrepresenting the square root of this object.PsyNumericpsyTan()Returns anumericrepresenting the tangent of this object.PsyNumericpsyTanh()Returns anumericrepresenting the hyperbolic tangent of this object.doublerealValue()Returns the real part of this object.-
Methods inherited from interface coneforest.psylla.core.PsyAdditive
psyAdd, psyNeg, psySub
-
Methods inherited from interface coneforest.psylla.core.PsyArithmetic
psyDiv, psyIsZero, psyMul, psyNotZero
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
-
-
-
Field Detail
-
OPERATORS
static final PsyOperator[] OPERATORS
-
-
Method Detail
-
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 anumericabsolute value of this object.- Returns:
- a
numericabsolute value.
-
psyPow
PsyNumeric psyPow(PsyNumeric oNumeric) throws PsyErrorException
- Throws:
PsyErrorException
-
psyExp
PsyNumeric psyExp()
Returns anumericrepresenting the exponent of this object.- Returns:
- a
numericexponent.
-
psyCos
PsyNumeric psyCos()
Returns anumericrepresenting the cosine of this object.- Returns:
- a
numericcosine.
-
psySin
PsyNumeric psySin()
Returns anumericrepresenting the sine of this object.- Returns:
- a
numericsine.
-
psyTan
PsyNumeric psyTan()
Returns anumericrepresenting the tangent of this object.- Returns:
- a
numerictangent.
-
psyLog
PsyNumeric psyLog()
Returns anumericrepresenting the natural logarithm of this object.- Returns:
- a
numericlogarithm.
-
psyAcos
PsyNumeric psyAcos()
Returns anumericrepresenting the arc cosine of this object.- Returns:
- a
numericarc cosine.
-
psyAsin
PsyNumeric psyAsin()
Returns anumericrepresenting the arc sine of this object.- Returns:
- a
numericarc sine.
-
psyAtan
PsyNumeric psyAtan()
Returns anumericrepresenting the arc tangent of this object.- Returns:
- a
numericarc tangent.
-
psySqrt
PsyNumeric psySqrt()
Returns anumericrepresenting the square root of this object.- Returns:
- a
numericsquare root of this number.
-
psyCbrt
PsyNumeric psyCbrt()
Returns anumericrepresenting the cubic root of this object.- Returns:
- a
numericcubic root of this number.
-
psyCosh
PsyNumeric psyCosh()
Returns anumericrepresenting the hyperbolic cosine of this object.- Returns:
- a
numerichyperbolic cosine of this number.
-
psySinh
PsyNumeric psySinh()
Returns anumericrepresenting the hyperbolic sine of this object.- Returns:
- a
numerichyperbolic sine of this number.
-
psyTanh
PsyNumeric psyTanh()
Returns anumericrepresenting the hyperbolic tangent of this object.- Returns:
- a
numerichyperbolic tangent of this number.
-
-