|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Number gnu.math.Numeric gnu.math.Quantity gnu.math.Complex gnu.math.DComplex
public class DComplex
A complex number using rectangular (Cartesian) plain double values.
Field Summary |
---|
Fields inherited from class gnu.math.Numeric |
---|
CEILING, FLOOR, ROUND, TRUNCATE |
Constructor Summary | |
---|---|
DComplex()
|
|
DComplex(double real,
double imag)
|
Method Summary | |
---|---|
Numeric |
add(java.lang.Object y,
int k)
Return this + k * obj. |
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()
The value of the imaginary component, as a double. |
double |
doubleValue()
The value of the real component, as a double. |
boolean |
equals(java.lang.Object obj)
|
static double |
hypot(double x,
double y)
|
RealNum |
im()
The value of the imaginary component, as a RealNum. |
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()
The value of the real component, as a RealNum. |
void |
readExternal(java.io.ObjectInput in)
|
static Complex |
sqrt(double x_re,
double x_im)
|
java.lang.String |
toString()
|
java.lang.String |
toString(int radix)
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class gnu.math.Complex |
---|
abs, add, addReversed, angle, compare, compare, divide, divReversed, doubleRealValue, equals, exp, imMinusOne, imOne, isExact, isZero, log, longValue, make, make, mulReversed, neg, number, polar, polar, power, sqrt, times |
Methods inherited from class gnu.math.Quantity |
---|
add, compare, compareReversed, dimensions, divide, imValue, make, make, make, reValue, times, unit |
Methods inherited from class gnu.math.Numeric |
---|
add, div_inv, floatValue, geq, grt, intValue, mul_ident, power, sub |
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 |
Constructor Detail |
---|
public DComplex()
public DComplex(double real, double imag)
Method Detail |
---|
public RealNum re()
Quantity
re
in class Quantity
public double doubleValue()
Quantity
doubleValue
in class Complex
public RealNum im()
Quantity
im
in class Quantity
public double doubleImagValue()
Quantity
doubleImagValue
in class Complex
public boolean equals(java.lang.Object obj)
equals
in class Complex
public java.lang.String toString()
toString
in class Numeric
public java.lang.String toString(int radix)
toString
in class Complex
public final Numeric neg()
neg
in class Complex
public Numeric add(java.lang.Object y, int k)
Numeric
add
in class Complex
public Numeric mul(java.lang.Object y)
mul
in class Complex
public Numeric div(java.lang.Object y)
div
in class Complex
public static DComplex power(double x_re, double x_im, double y_re, double y_im)
public static Complex log(double x_re, double x_im)
public static DComplex div(double x_re, double x_im, double y_re, double y_im)
public static Complex sqrt(double x_re, double x_im)
public static double hypot(double x, double y)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |