|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Complex
Representation of a complex number a + i*b∈C.
Complex numbers are a field that is a superset of R⊂C. They are isomorph to a special polynomial ring, C ≅ R[i] / (i2 = -1) = R[X] / (X2+1).
☡
Since complex numbers are a field, they are also an Euclidean ring
.
However, because fields are (in a way) "degenerate"
Euclidean rings, they do not extend the Euclidean
interface.
The Euclidean quotient and remainder operations would not perform
very interesting calculations, and the Euclidean quotient would
fully coincide with ordinary division in a field.
☡ Complex numbers are not like real numbers. They are not ordered.
ValueFactory.complex(Real, Real)
,
ValueFactory.complex(double, double)
,
ValueFactory.cartesian(Real, Real)
,
ValueFactory.cartesian(double, double)
,
ValueFactory.polar(Real, Real)
,
ValueFactory.polar(double, double)
Field Summary | |
---|---|
static Predicate |
hasType
Checks whether the given number is a proper complex, i.e. |
static Predicate |
isa
Checks whether the given number is in the set of complex numbers. |
Fields inherited from interface orbital.math.Arithmetic |
---|
numerical |
Method Summary | |
---|---|
Complex |
add(Complex b)
adds two Complexes returning a third as a result |
Real |
arg()
Returns the principal angle (argument) component of a polar complex. |
Complex |
conjugate()
Returns the complex conjugated z = z* = z'. |
Complex |
divide(Complex b)
divides two complex numbers. |
boolean |
equals(java.lang.Object o)
Compares two complex numbers for equality. |
int |
hashCode()
Returns a hash code value for the object. |
Real |
im()
Get the imaginar component. |
boolean |
isInfinite()
Whether this complex number is infinite. |
boolean |
isNaN()
Whether this complex number is NaN. |
Complex |
multiply(Complex b)
multiplies two Complexes returning a third as a result |
Real |
norm()
Returns the absolute |z|. |
Complex |
power(Complex x)
power of complex numbers. |
Real |
re()
Get the real component. |
Complex |
subtract(Complex b)
subtracts two Complexes returning a third as a result |
Methods inherited from interface orbital.math.Arithmetic |
---|
add, divide, equals, inverse, isOne, isZero, minus, multiply, one, power, scale, subtract, toString, valueFactory, zero |
Field Detail |
---|
static final Predicate isa
static final Predicate hasType
Method Detail |
---|
boolean equals(java.lang.Object o)
Two complex numbers z, z' ∈ C are equal iff re z = re z' ∧ im z = im z'. This is a component-wise equality.
equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
Real re()
im()
Real im()
re()
Real norm()
It is |z|2 = z*z = re(z)2+im(z)2. and |x*y| = |x|*|y|, |z-1| = |z|-1.
Also called length, magnitude or modulus.
norm
in interface Normed
arg()
Real arg()
norm()
Complex conjugate()
Conjugation is an involutive field-automorphism that is identical on R.
boolean isInfinite()
Double.isInfinite(double)
boolean isNaN()
Double.isNaN(double)
Complex add(Complex b)
Complex subtract(Complex b)
Complex multiply(Complex b)
Complex divide(Complex b)
Complex power(Complex x)
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |