Class Complex
java.lang.Object
CoordinatePair
Vector2D
Complex
- All Implemented Interfaces:
- java.lang.Cloneable
public class Complex
- extends Vector2D
|
Method Summary |
double |
abs()
|
void |
add(double a)
|
double |
arg()
|
void |
conjugate()
|
static Complex |
conjugate(Complex arg)
|
void |
cos()
|
static Complex |
cos(Complex arg)
|
void |
cosh()
|
static Complex |
cosh(Complex arg)
|
void |
exp()
|
static Complex |
exp(Complex arg)
|
Complex |
fraction(Complex a,
Complex b)
|
double |
im()
|
void |
im(double value)
|
double |
imaginary()
|
void |
imaginary(double value)
|
void |
inverse()
|
static Complex |
inverse(Complex arg)
|
void |
log()
|
static Complex |
log(Complex arg)
|
void |
math(char op,
Complex b)
|
void |
math(char op,
double b)
|
static Complex |
math(Complex a,
char op,
Complex b)
|
static Complex |
math(Complex a,
char op,
double b)
|
static Complex |
math(double a,
char op,
Complex b)
|
void |
over(Complex c)
|
void |
over(double a)
|
static Complex |
pow(Complex arg,
double exp)
|
void |
pow(double b)
|
Complex |
product(Complex a,
Complex b)
|
double |
re()
|
void |
re(double value)
|
double |
real()
|
void |
real(double value)
|
void |
sin()
|
static Complex |
sin(Complex arg)
|
void |
sinh()
|
static Complex |
sinh(Complex arg)
|
void |
sqrt()
|
static Complex |
sqrt(Complex arg)
|
void |
subtract(double a)
|
void |
tan()
|
static Complex |
tan(Complex arg)
|
void |
tanh()
|
static Complex |
tanh(Complex arg)
|
void |
times(Complex c)
|
void |
times(double a)
|
java.lang.String |
toString()
|
| Methods inherited from class Vector2D |
add, addMultipleOf, angle, difference, distanceTo, dot, dot, getAngle, getValue, inverseOf, invert, length, math, math, math, norm, normalize, normalized, polar, project, projectOn, reflect, reflectOn, rotate, scale, setValue, subtract, sum |
| Methods inherited from class CoordinatePair |
clone, copy, createFromDoubles, equals, equals, isNaN, isNull, NaN, parse, set, toString, viewAsDoubles, viewAsDoubles, weightedAverageWith, zero |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Complex
public Complex()
Complex
public Complex(double re,
double im)
Complex
public Complex(Complex template)
Complex
public Complex(double x)
real
public double real()
imaginary
public double imaginary()
re
public double re()
im
public double im()
real
public void real(double value)
imaginary
public void imaginary(double value)
re
public void re(double value)
im
public void im(double value)
abs
public double abs()
arg
public double arg()
add
public void add(double a)
subtract
public void subtract(double a)
times
public void times(double a)
times
public void times(Complex c)
product
public Complex product(Complex a,
Complex b)
over
public void over(double a)
over
public void over(Complex c)
fraction
public Complex fraction(Complex a,
Complex b)
conjugate
public void conjugate()
conjugate
public static Complex conjugate(Complex arg)
inverse
public void inverse()
inverse
public static Complex inverse(Complex arg)
pow
public void pow(double b)
pow
public static Complex pow(Complex arg,
double exp)
sqrt
public void sqrt()
sqrt
public static Complex sqrt(Complex arg)
exp
public void exp()
exp
public static Complex exp(Complex arg)
log
public void log()
log
public static Complex log(Complex arg)
cos
public void cos()
cos
public static Complex cos(Complex arg)
sin
public void sin()
sin
public static Complex sin(Complex arg)
tan
public void tan()
tan
public static Complex tan(Complex arg)
cosh
public void cosh()
cosh
public static Complex cosh(Complex arg)
sinh
public void sinh()
sinh
public static Complex sinh(Complex arg)
tanh
public void tanh()
tanh
public static Complex tanh(Complex arg)
math
public void math(char op,
Complex b)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
math
public static Complex math(Complex a,
char op,
Complex b)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
math
public void math(char op,
double b)
throws java.lang.IllegalArgumentException
- Overrides:
math in class Vector2D
- Throws:
java.lang.IllegalArgumentException
math
public static Complex math(Complex a,
char op,
double b)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
math
public static Complex math(double a,
char op,
Complex b)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
toString
public java.lang.String toString()
- Overrides:
toString in class CoordinatePair