gnu.math

Class DComplex

public class DComplex extends Complex implements Externalizable

A complex number using rectangular (Cartesian) plain double values.
Constructor Summary
DComplex()
DComplex(double real, double imag)
Method Summary
Numericadd(Object y, int k)
Numericdiv(Object y)
static DComplexdiv(double x_re, double x_im, double y_re, double y_im)
Copyright 1990, 1991, 1992, 1993 by AT&T Bell Laboratories and Bellcore.
doubledoubleImagValue()
doubledoubleValue()
booleanequals(Object obj)
RealNumim()
static Complexlog(double x_re, double x_im)
Numericmul(Object y)
Numericneg()
static DComplexpower(double x_re, double x_im, double y_re, double y_im)
RealNumre()
voidreadExternal(ObjectInput in)
static Complexsqrt(double x_re, double x_im)
StringtoString()
StringtoString(int radix)
voidwriteExternal(ObjectOutput out)

Constructor Detail

DComplex

public DComplex()

DComplex

public DComplex(double real, double imag)

Method Detail

add

public Numeric add(Object y, int k)

div

public Numeric div(Object y)

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.

doubleImagValue

public double doubleImagValue()

doubleValue

public double doubleValue()

equals

public boolean equals(Object obj)

im

public RealNum im()

log

public static Complex log(double x_re, double x_im)

mul

public Numeric mul(Object y)

neg

public final Numeric neg()

power

public static DComplex power(double x_re, double x_im, double y_re, double y_im)

re

public RealNum re()

readExternal

public void readExternal(ObjectInput in)

sqrt

public static Complex sqrt(double x_re, double x_im)

toString

public String toString()

toString

public String toString(int radix)

writeExternal

public void writeExternal(ObjectOutput out)

Serial Data: Writes the real part, followed by the imaginary part. Both are written as doubles (using writeDouble).