gnu.math
Class DComplex
public
class
DComplex
extends Complex
implements Externalizable
A complex number using rectangular (Cartesian) plain double values.
Method Summary |
Numeric | add(Object y, int k) |
Numeric | div(Object y) |
static DComplex | div(double x_re, double x_im, double y_re, double y_im)
Copyright 1990, 1991, 1992, 1993 by AT&T Bell Laboratories and Bellcore.
|
double | doubleImagValue() |
double | doubleValue() |
boolean | equals(Object obj) |
RealNum | im() |
static Complex | log(double x_re, double x_im) |
Numeric | mul(Object y) |
Numeric | neg() |
static DComplex | power(double x_re, double x_im, double y_re, double y_im) |
RealNum | re() |
void | readExternal(ObjectInput in) |
static Complex | sqrt(double x_re, double x_im) |
String | toString() |
String | toString(int radix) |
void | writeExternal(ObjectOutput out) |
public DComplex()
public DComplex(double real, double imag)
public
Numeric add(Object y, int k)
public static
DComplex div(double x_re, double x_im, double y_re, double y_im)
Copyright 1990, 1991, 1992, 1993 by AT&T Bell Laboratories and Bellcore.
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the names of AT&T Bell Laboratories or
Bellcore or any of their entities not be used in advertising or
publicity pertaining to distribution of the software without
specific, written prior permission.
AT&T and Bellcore disclaim all warranties with regard to this
software, including all implied warranties of merchantability
and fitness. In no event shall AT&T or Bellcore be liable for
any special, indirect or consequential damages or any damages
whatsoever resulting from loss of use, data or profits, whether
in an action of contract, negligence or other tortious action,
arising out of or in connection with the use or performance of
this software.
public double doubleImagValue()
public double doubleValue()
public boolean equals(Object obj)
public static
Complex log(double x_re, double x_im)
public static
DComplex power(double x_re, double x_im, double y_re, double y_im)
public void readExternal(ObjectInput in)
public static
Complex sqrt(double x_re, double x_im)
public String toString()
public String toString(int radix)
public void writeExternal(ObjectOutput out)
Serial Data: Writes the real part, followed by the imaginary part.
Both are written as doubles (using writeDouble).