Method Summary |
|
public double | argument() Returns the argument of this complex number. |
public int | compareTo(Complex that) Compares two complex numbers, the real components are compared first,
then if equal, the imaginary components.
Parameters: that - the complex number to be compared with. |
public Complex | conjugate() Returns the conjugate of this complex number. |
public Complex | copy() |
public Complex | divide(double k) Returns this complex divided by the specified factor.
Parameters: k - the factor divisor. |
public Complex | divide(Complex that) Returns this complex divided by the specified complex.
Parameters: that - the complex divisor. |
public double | doubleValue() Returns the
Complex.getReal real component of this
Complex number as a double . |
public boolean | equals(Complex that, double tolerance) Indicates if two complexes are "sufficiently" alike to be considered
equal.
Parameters: that - the complex to compare with. Parameters: tolerance - the maximum magnitude of the difference betweenthem before they are considered not equal. |
public boolean | equals(Object that) Compares this complex against the specified Object.
Parameters: that - the object to compare with. |
public Complex | exp() Returns the exponential number e raised to the power of
this complex. |
public double | getImaginary() Returns the imaginary component of this complex number. |
public double | getReal() Returns the real component of this complex number. |
public int | hashCode() Returns the hash code for this complex number. |
public Complex | inverse() Returns the inverse of this complex. |
public boolean | isInfinite() Indicates if either the real or imaginary component of this complex
is infinite. |
public boolean | isLargerThan(Complex that) Compares the
Complex.magnitude() magnitude of this complex number
with the magnitude of the complex number specified.
Parameters: that - the complex number to be compared with. |
public boolean | isNaN() Indicates if either the real or imaginary component of this complex
is not a number. |
public Complex | log() Returns the principal natural logarithm (base e) of this complex. |
public long | longValue() Returns the
Complex.getReal real component of this
Complex number as a long . |
public double | magnitude() Returns the magnitude of this complex number, also referred to
as the "modulus" or "length". |
public Complex | minus(Complex that) Returns the difference between this complex and the one specified.
Parameters: that - the complex to be subtracted. |
public Complex | opposite() Returns the negation of this complex. |
public Complex | plus(Complex that) Returns the sum of this complex with the one specified.
Parameters: that - the complex to be added. |
public Complex | pow(double e) Returns this complex raised to the specified power.
Parameters: e - the exponent. |
public Complex | pow(Complex that) Returns this complex raised to the power of the specified complex
exponent.
Parameters: that - the exponent. |
public Complex | sqrt() Returns one of the two square root of this complex number. |
public Complex | times(double k) Returns this complex multiplied by the specified factor.
Parameters: k - the factor multiplier. |
public Complex | times(Complex that) Returns the product of this complex with the one specified.
Parameters: that - the complex multiplier. |
public Text | toText() Returns the text representation of this complex number. |
public static Complex | valueOf(double real, double imaginary) Returns the complex number having the specified real and imaginary
components.
Parameters: real - the real component of this complex number. Parameters: imaginary - the imaginary component of this complex number. |
public static Complex | valueOf(CharSequence csq) Returns the complex number for the specified character sequence.
Parameters: csq - the character sequence. |