gnu.math
Class DComplex
java.lang.Object
|
+--java.lang.Number
|
+--gnu.math.Numeric
|
+--gnu.math.Quantity
|
+--gnu.math.Complex
|
+--gnu.math.DComplex
- public class DComplex
- extends Complex
A complex number using rectangular (Cartesian) plain double values.
- See Also:
- Serialized Form
|
Constructor Summary |
DComplex(double real,
double imag)
|
|
Method Summary |
Numeric |
add(java.lang.Object y,
int k)
|
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. |
Numeric |
div(java.lang.Object y)
|
double |
doubleImagValue()
|
double |
doubleValue()
|
boolean |
equals(java.lang.Object obj)
|
static double |
hypot(double x,
double y)
|
RealNum |
im()
|
static Complex |
log(double x_re,
double x_im)
|
Numeric |
mul(java.lang.Object y)
|
Numeric |
neg()
|
static DComplex |
power(double x_re,
double x_im,
double y_re,
double y_im)
|
RealNum |
re()
|
static Complex |
sqrt(double x_re,
double x_im)
|
java.lang.String |
toString()
|
java.lang.String |
toString(int radix)
|
| Methods inherited from class gnu.math.Complex |
abs,
add,
addReversed,
angle,
compare,
compare,
div,
divReversed,
doubleRealValue,
equals,
exp,
imMinusOne,
imOne,
isExact,
isZero,
log,
longValue,
make,
make,
mul,
mulReversed,
neg,
number,
polar,
polar,
power,
sqrt |
| Methods inherited from class gnu.math.Quantity |
add,
compare,
compareReversed,
dimensions,
div,
imValue,
make,
make,
make,
mul,
reValue,
unit |
| Methods inherited from class java.lang.Number |
byteValue,
shortValue |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DComplex
public DComplex(double real,
double imag)
re
public RealNum re()
- Overrides:
- re in class Quantity
doubleValue
public double doubleValue()
- Overrides:
- doubleValue in class Complex
im
public RealNum im()
- Overrides:
- im in class Quantity
doubleImagValue
public double doubleImagValue()
- Overrides:
- doubleImagValue in class Complex
equals
public boolean equals(java.lang.Object obj)
- Overrides:
- equals in class Complex
toString
public java.lang.String toString()
- Overrides:
- toString in class Numeric
toString
public java.lang.String toString(int radix)
- Overrides:
- toString in class Complex
neg
public final Numeric neg()
- Overrides:
- neg in class Complex
add
public Numeric add(java.lang.Object y,
int k)
- Overrides:
- add in class Complex
mul
public Numeric mul(java.lang.Object y)
- Overrides:
- mul in class Complex
div
public Numeric div(java.lang.Object y)
- Overrides:
- div in class Complex
power
public static DComplex power(double x_re,
double x_im,
double y_re,
double y_im)
log
public static Complex log(double x_re,
double x_im)
div
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.
sqrt
public static Complex sqrt(double x_re,
double x_im)
hypot
public static double hypot(double x,
double y)