A complex number using rectangular (Cartesian) plain double values.
add
public Numeric add(Object y,
int k)
Return this + k * obj.
- add in interface Complex
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.
equals
public boolean equals(Object obj)
- equals in interface Complex
hypot
public static double hypot(double x,
double y)
log
public static Complex log(double x_re,
double x_im)
power
public static DComplex power(double x_re,
double x_im,
double y_re,
double y_im)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
sqrt
public static Complex sqrt(double x_re,
double x_im)
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException