public class DComplex extends Complex implements java.io.Externalizable
| Constructor and Description |
|---|
DComplex() |
DComplex(double real,
double imag) |
| Modifier and Type | Method and Description |
|---|---|
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) |
RealNum |
im()
The value of the imaginary component, as a RealNum.
|
boolean |
isExact() |
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) |
Complex |
toExact() |
java.lang.String |
toString() |
java.lang.String |
toString(int radix) |
void |
writeExternal(java.io.ObjectOutput out) |
abs, add, addReversed, angle, compare, compare, divide, divReversed, doubleRealValue, equals, exp, imMinusOne, imOne, isZero, log, longValue, make, make, mulReversed, neg, number, polar, polar, power, sqrt, times, toInexactadd, compare, compareReversed, dimensions, divide, imValue, make, make, make, reValue, times, unitpublic RealNum re()
Quantitypublic double doubleValue()
QuantitydoubleValue in class Complexpublic RealNum im()
Quantitypublic double doubleImagValue()
QuantitydoubleImagValue in class Complexpublic Numeric add(java.lang.Object y, int k)
Numericpublic 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 void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException