| Modifier and Type | Field and Description |
|---|---|
static Complex |
Complex.I
The square root of -1, a.k.a.
|
static Complex |
Complex.INF
A complex number representing "+INF + INF i"
|
static Complex |
Complex.ONE
A complex number representing one.
|
static Complex |
Complex.ZERO
A complex number representing zero.
|
| Modifier and Type | Method and Description |
|---|---|
Complex |
Complex.acos()
Compute the
inverse cosine of this complex number.
|
Complex |
Complex.acosh()
Compute the
inverse hyperbolic cosine of this complex number.
|
Complex |
Complex.add(Complex addend)
Returns a
Complex whose value is
(this + addend). |
Complex |
Complex.add(double addend)
Returns a
Complex whose value is (this + addend),
with addend interpreted as a real number. |
Complex |
Complex.asin()
Compute the
inverse sine of this complex number.
|
Complex |
Complex.asinh()
Compute the
inverse hyperbolic sine of this complex number.
|
Complex |
Complex.atan()
Compute the
inverse tangent of this complex number.
|
Complex |
Complex.atanh()
Compute the
inverse hyperbolic tangent of this complex number.
|
Complex |
Complex.conj()
Returns the conjugate of this complex number.
|
Complex |
Complex.conjugate()
Returns the conjugate of this complex number.
|
Complex |
Complex.cos()
Compute the
cosine of this complex number.
|
Complex |
Complex.cosh()
Compute the
hyperbolic cosine of this complex number.
|
Complex |
Complex.divide(Complex divisor)
Returns a
Complex whose value is
(this / divisor). |
Complex |
Complex.divide(double divisor)
Returns a
Complex whose value is (this / divisor),
with divisor interpreted as a real number. |
Complex |
Complex.exp()
Compute the
exponential function of this complex number.
|
Complex |
Complex.log()
Compute the
natural logarithm of this complex number.
|
Complex |
Complex.log10()
Compute the base 10 or
common logarithm of this complex number.
|
Complex |
Complex.multiply(Complex factor)
Returns a
Complex whose value is this * factor. |
Complex |
Complex.multiply(double factor)
Returns a
Complex whose value is this * factor, with factor
interpreted as a real number. |
Complex |
Complex.multiply(int factor)
Returns a
Complex whose value is this * factor, with factor
interpreted as a integer number. |
Complex |
Complex.negate()
Returns a
Complex whose value is (-this). |
static Complex |
Complex.ofCartesian(double real,
double imaginary)
Create a complex number given the real and imaginary parts.
|
static Complex |
Complex.ofCis(double x)
For a real constructor argument x, returns a new Complex object c
where
c = cos(x) + i sin (x) |
static Complex |
Complex.ofPolar(double r,
double theta)
Creates a Complex from its polar representation.
|
static Complex |
Complex.ofReal(double real)
Create a complex number given the real part.
|
static Complex |
Complex.parse(String s)
Parses a string that would be produced by
toString()
and instantiates the corresponding object. |
Complex |
Complex.pow(Complex x)
Returns of value of this complex number raised to the power of
x. |
Complex |
Complex.pow(double x)
Returns of value of this complex number raised to the power of
x. |
Complex |
Complex.proj()
Returns projection of this complex number onto the Riemann sphere,
i.e.
|
Complex |
Complex.reciprocal()
Returns the multiplicative inverse of this instance.
|
Complex |
Complex.sin()
Compute the
sine
of this complex number.
|
Complex |
Complex.sinh()
Compute the
hyperbolic sine of this complex number.
|
Complex |
Complex.sqrt()
Compute the
square root of this complex number.
|
Complex |
Complex.square()
Compute the square of this complex number.
|
Complex |
Complex.subtract(Complex subtrahend)
Returns a
Complex whose value is
(this - subtrahend). |
Complex |
Complex.subtract(double subtrahend)
Returns a
Complex whose value is
(this - subtrahend). |
Complex |
Complex.tan()
Compute the
tangent of this complex number.
|
Complex |
Complex.tanh()
Compute the
hyperbolic tangent of this complex number.
|
| Modifier and Type | Method and Description |
|---|---|
List<Complex> |
Complex.nthRoot(int n)
Computes the n-th roots of this complex number.
|
| Modifier and Type | Method and Description |
|---|---|
Complex |
Complex.add(Complex addend)
Returns a
Complex whose value is
(this + addend). |
Complex |
Complex.divide(Complex divisor)
Returns a
Complex whose value is
(this / divisor). |
static boolean |
Complex.equals(Complex x,
Complex y)
Returns
true iff the values are equal as defined by
equals(x, y, 1). |
static boolean |
Complex.equals(Complex x,
Complex y,
double eps)
Returns
true if, both for the real part and for the imaginary
part, there is no double value strictly between the arguments or the
difference between them is within the range of allowed error
(inclusive). |
static boolean |
Complex.equals(Complex x,
Complex y,
int maxUlps)
Test for the floating-point equality between Complex objects.
|
static boolean |
Complex.equalsWithRelativeTolerance(Complex x,
Complex y,
double eps)
Returns
true if, both for the real part and for the imaginary
part, there is no double value strictly between the arguments or the
relative difference between them is smaller or equal to the given
tolerance. |
Complex |
Complex.multiply(Complex factor)
Returns a
Complex whose value is this * factor. |
Complex |
Complex.pow(Complex x)
Returns of value of this complex number raised to the power of
x. |
Complex |
Complex.subtract(Complex subtrahend)
Returns a
Complex whose value is
(this - subtrahend). |
Copyright © 2017–2018 The Apache Software Foundation. All rights reserved.