Class Complex
java.lang.Object
java.lang.Number
gnu.math.Numeric
gnu.math.Quantity
gnu.math.Quaternion
gnu.math.Complex
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabs()static ComplexReturn this + k * obj.addReversed(Numeric x, int k) Calculatex+k&this.angle()intCheck if value is finite, infinite, or NaN.final RealNumstatic intintReturn an integer for which ofthisorobjis larger.final Complexcos()static Complexstatic booleanbooleanexp()static CComplexstatic CCompleximOne()booleanisExact()booleanisZero()final RealNumjm()The value of the "j" component, as a RealNum.final RealNumkm()The value of the "k" component, as a RealNum.log()final RealNumstatic Complexmake(double re, double im) static Complexneg()static Complexstatic Complexpolar(double r, double t) static Complexstatic Complexsin()sqrt()tan()static ComplextoExact()toString(int radix) Methods inherited from class Quaternion
add, compare, divide, doubleImagValue, doubleJmagValue, doubleKmagValue, doubleRealValue, doubleValue, equals, jmMinusOne, jmOne, kmMinusOne, kmOne, longValue, make, make, neg, number, polar, polar, power, timesMethods inherited from class Quantity
add, compare, compareReversed, dimensions, divide, im, imValue, jmValue, kmValue, make, make, make, re, reValue, times, unitMethods inherited from class Numeric
add, asNumericOrNull, div_inv, floatValue, geq, grt, intValue, mul_ident, power, sub, toStringMethods inherited from class Number
byteValue, shortValue
-
Constructor Details
-
Complex
public Complex()
-
-
Method Details
-
jm
-
km
-
complexPart
- Overrides:
complexPartin classQuaternion
-
vectorPart
- Overrides:
vectorPartin classQuaternion
-
unitVector
- Overrides:
unitVectorin classQuaternion
-
unitQuaternion
- Overrides:
unitQuaternionin classQuaternion
-
conjugate
- Overrides:
conjugatein classQuaternion
-
isExact
public boolean isExact()- Overrides:
isExactin classQuaternion
-
classifyFinite
public int classifyFinite()Check if value is finite, infinite, or NaN.- Overrides:
classifyFinitein classQuaternion- Returns:
- 1 if finite; 0 if infinite; -1 if NaN.
-
toExact
- Overrides:
toExactin classQuaternion
-
toInexact
- Overrides:
toInexactin classQuaternion
-
imOne
-
imMinusOne
-
make
-
make
-
polar
-
polar
-
power
-
abs
- Overrides:
absin classQuaternion
-
angle
- Overrides:
anglein classQuaternion
-
colatitude
- Overrides:
colatitudein classQuaternion
-
longitude
- Overrides:
longitudein classQuaternion
-
equals
-
equals
- Overrides:
equalsin classQuaternion
-
compare
-
compare
Description copied from class:NumericReturn an integer for which ofthisorobjis larger. Return 1 ifthis>obj; 0 ifthis==obj; -1 ifthis<obj; -2 ifthis!=objotherwise (for example if either is NaN); -3 if not comparable (incompatible types).- Overrides:
comparein classQuaternion
-
isZero
public boolean isZero()- Overrides:
isZeroin classQuaternion
-
toString
- Overrides:
toStringin classQuaternion
-
neg
-
neg
- Overrides:
negin classQuaternion
-
add
-
add
-
addReversed
Description copied from class:NumericCalculatex+k&this.- Overrides:
addReversedin classQuaternion
-
times
-
mul
- Overrides:
mulin classQuaternion
-
mulReversed
- Overrides:
mulReversedin classQuaternion
-
divide
-
div
- Overrides:
divin classQuaternion
-
divReversed
- Overrides:
divReversedin classQuaternion
-
exp
- Overrides:
expin classQuaternion
-
log
- Overrides:
login classQuaternion
-
sqrt
- Overrides:
sqrtin classQuaternion
-
sin
- Overrides:
sinin classQuaternion
-
cos
- Overrides:
cosin classQuaternion
-
tan
- Overrides:
tanin classQuaternion
-