java.lang.Object
java.lang.Number
net.anwiba.commons.utilities.math.Complex
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(double value) angle()static Complexstatic Complexstatic doubleatanh(double value) static Complexstatic Complexstatic doublecosh(double value) static Complexdoublestatic ComplexfloatdoubleintintValue()booleanisReal()static Complexlongdoublemultiply(double factor) static Complexdoublereal()static Complexstatic doublesinh(double value) static Complexstatic Complexsubtract(double value) static Complexstatic doubletanh(double value) static ComplextoString()Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
identity
-
-
Constructor Details
-
Complex
public Complex(double real, double imaginary) -
Complex
public Complex() -
Complex
public Complex(double real) -
Complex
-
Complex
-
Complex
-
-
Method Details
-
real
public double real() -
imaginary
public double imaginary() -
conjugate
-
isReal
public boolean isReal() -
magnitude
public double magnitude() -
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
longValue
public long longValue() -
intValue
public int intValue() -
angle
-
add
-
add
-
subtract
-
subtract
-
multiply
-
multiply
-
divide
- Throws:
IllegalStateException
-
sin
-
cos
-
tan
-
pow
-
sinh
-
cosh
-
tanh
-
tanh
public static double tanh(double value) -
atan
-
sinh
public static double sinh(double value) -
cosh
public static double cosh(double value) -
exp
-
ln
-
sqrt
-
asin
-
atanh
-
atanh
public static double atanh(double value) -
toString
-