| Package | Description |
|---|---|
| org.jscience.mathematics.number |
Provides common types of numbers most of them implementing the
field interface. |
| org.jscience.mathematics.vector |
| Modifier and Type | Field and Description |
|---|---|
static Complex |
Complex.I
The imaginary unit i.
|
static Complex |
Complex.ONE
The complex number one.
|
static Complex |
Complex.ZERO
The complex number zero.
|
| Modifier and Type | Method and Description |
|---|---|
Complex |
Complex.conjugate()
Returns the conjugate of this complex number.
|
Complex |
Complex.copy() |
Complex |
Complex.divide(Complex that)
Returns this complex divided by the specified complex.
|
Complex |
Complex.divide(double k)
Returns this complex divided by the specified factor.
|
Complex |
Complex.exp()
Returns the exponential number e raised to the power of
this complex.
|
Complex |
Complex.inverse()
Returns the inverse of this complex.
|
Complex |
Complex.log()
Returns the principal natural logarithm (base e) of this complex.
|
Complex |
Complex.minus(Complex that)
Returns the difference between this complex and the one specified.
|
Complex |
Complex.opposite()
Returns the negation of this complex.
|
Complex |
Complex.plus(Complex that)
Returns the sum of this complex with the one specified.
|
Complex |
Complex.pow(Complex that)
Returns this complex raised to the power of the specified complex
exponent.
|
Complex |
Complex.pow(double e)
Returns this complex raised to the specified power.
|
Complex |
Complex.sqrt()
Returns one of the two square root of this complex number.
|
Complex |
Complex.times(Complex that)
Returns the product of this complex with the one specified.
|
Complex |
Complex.times(double k)
Returns this complex multiplied by the specified factor.
|
static Complex |
Complex.valueOf(CharSequence csq)
Returns the complex number for the specified character sequence.
|
static Complex |
Complex.valueOf(double real,
double imaginary)
Returns the complex number having the specified real and imaginary
components.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Complex.compareTo(Complex that)
Compares two complex numbers, the real components are compared first,
then if equal, the imaginary components.
|
Complex |
Complex.divide(Complex that)
Returns this complex divided by the specified complex.
|
boolean |
Complex.equals(Complex that,
double tolerance)
Indicates if two complexes are "sufficiently" alike to be considered
equal.
|
boolean |
Complex.isLargerThan(Complex that)
Compares the
magnitude of this complex number
with the magnitude of the complex number specified. |
Complex |
Complex.minus(Complex that)
Returns the difference between this complex and the one specified.
|
Complex |
Complex.plus(Complex that)
Returns the sum of this complex with the one specified.
|
Complex |
Complex.pow(Complex that)
Returns this complex raised to the power of the specified complex
exponent.
|
Complex |
Complex.times(Complex that)
Returns the product of this complex with the one specified.
|
| Modifier and Type | Method and Description |
|---|---|
Complex |
ComplexMatrix.cofactor(int i,
int j) |
Complex |
ComplexMatrix.determinant() |
Complex |
ComplexVector.get(int i) |
Complex |
ComplexMatrix.get(int i,
int j) |
Complex |
ComplexVector.norm()
Returns the Euclidian norm of this vector (square root of the
dot product of this vector and itself).
|
Complex |
ComplexVector.times(Vector<Complex> that) |
| Modifier and Type | Method and Description |
|---|---|
ComplexMatrix |
ComplexMatrix.times(Complex k) |
ComplexVector |
ComplexVector.times(Complex k) |
static ComplexVector |
ComplexVector.valueOf(Complex... elements)
Returns a new vector holding the specified complex numbers.
|
static ComplexMatrix |
ComplexMatrix.valueOf(Complex[][] elements)
Returns a complex matrix from the specified 2-dimensional array.
|
| Modifier and Type | Method and Description |
|---|---|
ComplexMatrix |
ComplexMatrix.minus(Matrix<Complex> that) |
ComplexVector |
ComplexVector.minus(Vector<Complex> that) |
ComplexMatrix |
ComplexMatrix.plus(Matrix<Complex> that) |
ComplexVector |
ComplexVector.plus(Vector<Complex> that) |
ComplexMatrix |
ComplexMatrix.tensor(Matrix<Complex> that) |
ComplexMatrix |
ComplexMatrix.times(Matrix<Complex> that) |
ComplexVector |
ComplexMatrix.times(Vector<Complex> v) |
Complex |
ComplexVector.times(Vector<Complex> that) |
static ComplexVector |
ComplexVector.valueOf(List<Complex> elements)
Returns a new vector holding the elements from the specified
collection.
|
static ComplexMatrix |
ComplexMatrix.valueOf(Matrix<Complex> that)
Returns a complex matrix equivalent to the specified matrix.
|
static ComplexVector |
ComplexVector.valueOf(Vector<Complex> that)
Returns a
ComplexVector instance equivalent to the
specified vector. |