|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.math.Complex
public class Complex
Complex implements a complex number and defines complex arithmetic and mathematical functions Last Updated February 27, 2001 Copyright 1997-2001
Constructor Summary | |
---|---|
Complex(double u,
double v)
Constructs the complex number z = u + i*v |
Method Summary | |
---|---|
double |
arg()
Argument of this Complex number (the angle in radians with the x-axis in polar coordinates). |
Complex |
chs()
Negative of this complex number (chs stands for change sign). |
java.lang.Object |
clone()
|
Complex |
conj()
Complex conjugate of this Complex number (the conjugate of x+i*y is x-i*y). |
Complex |
cos()
Cosine of this Complex number (doesn't change this Complex number). |
Complex |
cosh()
Hyperbolic cosine of this Complex number (doesn't change this Complex number). |
Complex |
div(Complex w)
Division of Complex numbers (doesn't change this Complex number). |
Complex |
divide(double k)
Returns this complex divided by the specified factor. |
Complex |
exp()
Complex exponential (doesn't change this Complex number). |
double |
imag()
Imaginary part of this Complex number (the y-coordinate in rectangular coordinates). |
Complex |
log()
Principal branch of the Complex logarithm of this Complex number. |
Complex |
minus(Complex w)
Subtraction of Complex numbers (doesn't change this Complex number). |
Complex |
minusReal(double w)
Subtraction from real part |
double |
mod()
Modulus of this Complex number (the distance from the origin in polar coordinates). |
Complex |
plus(Complex w)
Addition of Complex numbers (doesn't change this Complex number). |
double |
real()
Real part of this Complex number (the x-coordinate in rectangular coordinates). |
Complex |
sin()
Sine of this Complex number (doesn't change this Complex number). |
Complex |
sinh()
Hyperbolic sine of this Complex number (doesn't change this Complex number). |
Complex |
sqrt()
Complex square root (doesn't change this complex number). |
Complex |
tan()
Tangent of this Complex number (doesn't change this Complex number). |
Complex |
times(Complex w)
Complex multiplication (doesn't change this Complex number). |
Complex |
times(double k)
Returns this complex multiplied by the specified factor. |
java.lang.String |
toString()
String representation of this Complex number. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Complex(double u, double v)
u
- Real partv
- Imaginary partMethod Detail |
---|
public double real()
public double imag()
public double mod()
public double arg()
public Complex conj()
public Complex plus(Complex w)
w
- is the number to add.
public Complex minus(Complex w)
w
- is the number to subtract.
public Complex minusReal(double w)
w
- real value for subtractionpublic Complex times(Complex w)
w
- is the number to multiply by.
public Complex times(double k)
k
- the factor multiplier.
this * k
.public Complex divide(double k)
k
- the factor divisor.
this / k
.public Complex div(Complex w)
w
- is the number to divide by
public Complex exp()
public Complex log()
public Complex sqrt()
public Complex sin()
public Complex cos()
public Complex sinh()
public Complex cosh()
public Complex tan()
public Complex chs()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |