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 of Ψ-numeric, 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 a Ψ-numericabsolute value of this object.PsyNumericpsyAcos()Returns a Ψ-numericrepresenting the arc cosine of this object.PsyNumericpsyAsin()Returns a Ψ-numericrepresenting the arc sine of this object.PsyNumericpsyAtan()Returns a Ψ-numericrepresenting the arc tangent of this object.PsyNumericpsyCbrt()Returns a Ψ-numericrepresenting the cubic root of this object.PsyNumericpsyCos()Returns a Ψ-numericrepresenting the cosine of this object.PsyNumericpsyCosh()Returns a Ψ-numericrepresenting the hyperbolic cosine of this object.PsyNumericpsyExp()Returns a Ψ-numericrepresenting the exponent of this object.PsyNumericpsyLog()Returns a Ψ-numericrepresenting the natural logarithm of this object.PsyNumericpsyPow(PsyNumeric oNumeric)PsyNumericpsySin()Returns a Ψ-numericrepresenting the sine of this object.PsyNumericpsySinh()Returns a Ψ-numericrepresenting the hyperbolic sine of this object.PsyNumericpsySqrt()Returns a Ψ-numericrepresenting the square root of this object.PsyNumericpsyTan()Returns a Ψ-numericrepresenting the tangent of this object.PsyNumericpsyTanh()Returns a Ψ-numericrepresenting 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 a Ψ-numericabsolute value of this object.- Returns:
- a Ψ-
numericabsolute value.
-
psyPow
PsyNumeric psyPow(PsyNumeric oNumeric) throws PsyException
- Throws:
PsyException
-
psyExp
PsyNumeric psyExp()
Returns a Ψ-numericrepresenting the exponent of this object.- Returns:
- a Ψ-
numericexponent.
-
psyCos
PsyNumeric psyCos()
Returns a Ψ-numericrepresenting the cosine of this object.- Returns:
- a Ψ-
numericcosine.
-
psySin
PsyNumeric psySin()
Returns a Ψ-numericrepresenting the sine of this object.- Returns:
- a Ψ-
numericsine.
-
psyTan
PsyNumeric psyTan()
Returns a Ψ-numericrepresenting the tangent of this object.- Returns:
- a Ψ-
numerictangent.
-
psyLog
PsyNumeric psyLog()
Returns a Ψ-numericrepresenting the natural logarithm of this object.- Returns:
- a Ψ-
numericlogarithm. value.
-
psyAcos
PsyNumeric psyAcos()
Returns a Ψ-numericrepresenting the arc cosine of this object.- Returns:
- a Ψ-
numericarc cosine.
-
psyAsin
PsyNumeric psyAsin()
Returns a Ψ-numericrepresenting the arc sine of this object.- Returns:
- a Ψ-
numericarc sine.
-
psyAtan
PsyNumeric psyAtan()
Returns a Ψ-numericrepresenting the arc tangent of this object.- Returns:
- a Ψ-
numericarcc tangent.
-
psySqrt
PsyNumeric psySqrt()
Returns a Ψ-numericrepresenting the square root of this object.- Returns:
- a Ψ-
numericsquare root of this number.
-
psyCbrt
PsyNumeric psyCbrt()
Returns a Ψ-numericrepresenting the cubic root of this object.- Returns:
- a Ψ-
numericcubic root of this number.
-
psyCosh
PsyNumeric psyCosh()
Returns a Ψ-numericrepresenting the hyperbolic cosine of this object.- Returns:
- a Ψ-
numerichyperbolic cosine of this number.
-
psySinh
PsyNumeric psySinh()
Returns a Ψ-numericrepresenting the hyperbolic sine of this object.- Returns:
- a Ψ-
numerichyperbolic sine of this number.
-
psyTanh
PsyNumeric psyTanh()
Returns a Ψ-numericrepresenting the hyperbolic tangent of this object.- Returns:
- a Ψ-
numerichyperbolic tangent of this number.
-
-