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, toInexact
add, compare, compareReversed, dimensions, divide, imValue, make, make, make, reValue, times, unit
public RealNum re()
Quantity
public double doubleValue()
Quantity
doubleValue
in class Complex
public RealNum im()
Quantity
public double doubleImagValue()
Quantity
doubleImagValue
in class Complex
public Numeric add(java.lang.Object y, int k)
Numeric
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 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