|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmfc.number.Complex
This class provides a comprehensive library for complex numbers. The underlying ideas are the following:
Method names refer to the action performed:
For instances a,b of class Complex, a.plus(b)
produces a new instance of Complex containing the sum a+b.
Assign-methods do NOT create new instances:
For instances a,b,c of class Complex,
c.assignPlus(a,b) stores the sum a+b in c.
a.assignPlus(b) stores the sum a+b in a,
like the operator "+=" does for simple types.
Complex numbers INTERACT WITH DOUBLES:
For an instance a of class Complex and a double r,
a.times(r) creates a new Complex containing the product a*r.
| Field Summary | |
static Complex |
I
Deprecated. |
double |
im
imaginary part of complex number |
static Complex |
NEG_I
Deprecated. |
static Complex |
NEG_ONE
Deprecated. |
static Complex |
ONE
Deprecated. |
static Complex |
PI_OVER_4
Deprecated. |
static Complex |
PI3_OVER_4
Deprecated. |
static Complex |
PI5_OVER_4
Deprecated. |
static Complex |
PI7_OVER_4
Deprecated. |
double |
re
real part of complex number |
static Complex |
ZERO
Deprecated. |
| Constructor Summary | |
Complex()
Creates complex zero. |
|
Complex(Complex u)
Creates this which is equal to u |
|
Complex(double aReal)
Creates this with re = aReal. |
|
Complex(double aReal,
double aImag)
Creates this with real and imag entry. |
|
| Method Summary | |
double |
abs()
Retuurns r = |u| |
static double |
abs(Complex u)
Returns r = |u| |
static double |
abs(double x,
double y)
Returns |x+iy| |
double |
absSqr()
Returns r = |u|^2 |
static double |
absSqr(Complex u)
Returns |u.re+iu.im|^2 |
static double |
absSqr(double x,
double y)
Returns |x+iy|^2 |
double |
arg()
Returns arg( this ) |
static double |
arg(Complex u)
Returns arg( u ) |
static double |
arg(double x,
double y)
Returns arg( x + iy ) |
static boolean |
arraysCoinside(Complex[] c1,
Complex[] c2)
Indicates whether c1 equal to c2 |
static boolean |
arraysCoinside(Complex[] c1,
Complex[] c2,
double eps)
Indicates whether c1 equal to c2 |
Complex |
assign(Complex v)
Assigns this with v. |
Complex |
assign(double re)
Assigns this with re. |
void |
assign(double aReal,
double aImag)
Assigns this with real and imag entry. |
void |
assignConjugate()
Conjugates this. |
void |
assignConjugate(Complex u)
Assigns this with conjugation of u. |
void |
assignCos()
Assigns this with cosinus this. |
void |
assignCos(Complex u)
Assigns this with cosinus u. |
void |
assignCosh()
Assigns this with cosinushyperbolicus this. |
void |
assignCosh(Complex u)
Assigns this with cosinushyperbolicus u. |
void |
assignCrossRatio(Complex a,
Complex b,
Complex c,
Complex d)
Returns (a-b)/(b-c)*(c-d)/(d-a). |
void |
assignCube()
Assigns this with cube of this
this = this^3. |
void |
assignCube(Complex u)
Assigns this cube of u
this = u^3. |
void |
assignDivide(Complex v)
Assigns this with product of division between this and v. |
void |
assignDivide(Complex u,
Complex v)
assigns this with product of division between u and v: this = u / v. |
void |
assignDivide(Complex u,
double r)
assigns this with product of division between u and r: this = u / r. |
void |
assignDivide(double r)
Assigns this with product of division between this and r:this /= r. |
void |
assignDivide(double x,
double y)
Assigns this with product of division between this and x,y: this /= x+i*y. |
void |
assignDivideI()
Divides this with i. |
void |
assignDivideI(Complex v)
Assigns this with the quotient of v and i. |
void |
assignExp()
Assigns this with exponent of this. |
void |
assignExp(Complex u)
Assigns this with exponent of u. |
void |
assignExp(double x,
double y)
Assigns this with exponent of x+iy. |
void |
assignFromPolar(double r,
double f)
Assigns this = r*exp(i*phi). |
void |
assignInvert()
u = 1./u. |
void |
assignInvert(Complex u)
Assigns this with inverse of u. |
void |
assignLog()
Assigns this with log(this). |
void |
assignLog(Complex u)
Assigns this with log(u). |
void |
assignMinus(Complex v)
Assigns this with product of substraction between this and v. |
void |
assignMinus(Complex u,
Complex v)
Assigns this with product of substraction between tu and v. |
void |
assignMinus(Complex u,
double r)
Assigns this with product of substraction between tu and r. |
void |
assignMinus(double r)
Assigns this with product of substraction between this and r. |
void |
assignMinus(double x,
double y)
Assigns this with product of substraction between this and x,y. |
void |
assignNeg()
Assigns this with negative sign. |
void |
assignNeg(Complex u)
Assigns this with negative u. |
void |
assignPlus(Complex v)
Assigns this with sum of this and v. |
void |
assignPlus(Complex u,
Complex v)
Assigns this with sum of u and v. |
void |
assignPlus(Complex u,
double r)
Assigns this with sum of u and r. |
void |
assignPlus(double r)
Assigns this with sum of this and r. |
void |
assignPlus(double x,
double y)
Assigns this with sum of this and x,y. |
void |
assignPow(Complex v)
Assigns this with product of this^v. |
void |
assignPow(Complex u,
Complex v)
Assigns this with product of u^v. |
void |
assignPow(Complex u,
double r)
Assigns this with u to the pow of r. |
void |
assignPow(Complex u,
int r)
Assigns this with u to the pow of r. |
void |
assignPow(double r)
Assigns this with this to the pow of r. |
void |
assignPow(int r)
Assigns this with this to the pow of r. |
void |
assignRandom()
Assigns this=random(). |
void |
assignSin()
Assigns this with sinus this. |
void |
assignSin(Complex u)
Assigns this with sinus u. |
void |
assignSinh()
Assigns this with sinushyperbolicus this. |
void |
assignSinh(Complex u)
Assigns this with sinushyperbolicus u. |
void |
assignSqr()
Assigns this with root of this. |
void |
assignSqr(Complex u)
Assigns this with root of u. |
void |
assignSqrt()
Assigns this with sqrt(this). |
void |
assignSqrt(Complex u)
Assigns this with sqrt(u). |
void |
assignTimes(Complex v)
Assigns this with product of mltiplication between this with v |
void |
assignTimes(Complex u,
Complex v)
Assigns this with product of mltiplication between u with v. |
void |
assignTimes(Complex u,
double r)
Assigns this with product of mltiplication between u with r. |
void |
assignTimes(double r)
Assigns this with product of mltiplication between this with r |
void |
assignTimes(double x,
double y)
Assigns this with product of mltiplication between this with x,y. |
void |
assignTimesI()
Multiplies this with i. |
void |
assignTimesI(Complex v)
Assigns this with the product of v and i. |
java.lang.Object |
clone()
Clones this to new Complex. |
Complex |
conjugate()
Returns conjugation of this. |
static Complex |
conjugate(Complex u)
Returns conjugation of u. |
Complex |
copy()
Creates a new Complex that is copy of this. |
Complex |
cos()
Returns cosinus of this. |
static Complex |
cos(Complex u)
Returns cosinus of u. |
Complex |
cosh()
Returns cosinushyperbolicus of this. |
static Complex |
cosh(Complex u)
Returns cosinushyperbolicus of u. |
static Complex |
crossRatio(Complex a,
Complex b,
Complex c,
Complex d)
Returns (a-b)/(b-c)*(c-d)/(d-a). |
Complex |
cube()
Returns cube of this. |
static Complex |
cube(Complex u)
Returns cube of u. |
double |
det(Complex v)
Returns r = det(this,v). |
static double |
det(Complex u,
Complex v)
Returns r = det(u,v). |
double |
dist(Complex v)
Returns r = |this-v| |
static double |
dist(Complex u,
Complex v)
Returns r = |u-v| |
double |
distSqr(Complex v)
Returns r = |this-v|^2 |
static double |
distSqr(Complex u,
Complex v)
Returns r = |u-v|^2 |
Complex |
divide(Complex v)
Returns ratio of this and v. |
Complex |
divide(double r)
Returns ratio of this and r. |
Complex |
divideI()
Returns new Complex which is assigned with the
the quotient of this and i. |
double |
dot(Complex v)
Returns r = . |
static double |
dot(Complex u,
Complex v)
Returns r = _R^2. |
boolean |
equals(Complex c)
Indicates whether some other Complex is "equal to" this one. |
boolean |
equals(Complex c,
double eps)
Indicates whether c equal to this |
boolean |
equals(double x,
double y)
Indicates whether x + iy is "equal to" this one. |
static boolean |
equals(double x1,
double y1,
double x2,
double y2)
Indicates whether x1 + iy1 is "equal to" x2 + iy2. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
Complex |
exp()
Returns exponent of this. |
static Complex |
exp(Complex u)
Returns exponent of u. |
static Complex |
fromPolar(double r,
double f)
Returns w = r*exp(i*phi). |
double |
getIm()
Return imag. |
double |
getRe()
Return real part of this. |
static double |
im(Complex u)
Returns imag. |
Complex |
invert()
Returns invert of this. |
static Complex |
invert(Complex u)
Returns invert of u. |
boolean |
isInfinite()
Returns true if this has any infinite entries. |
boolean |
isNaN()
Returns true if this has any Not-a-Number(NaN) entries |
boolean |
isZero()
Returns true if this has only zero entries. |
Complex |
log()
Returns product of log this. |
static Complex |
log(Complex u)
Returns product of log u. |
Complex |
minus(Complex v)
Creates a new Complex C which is product of substraction v from this. |
Complex |
minus(double r)
creates a new Complex which is product of substraction r from this. |
Complex |
neg()
Returns negative of this. |
static Complex |
neg(Complex u)
Returns negative of u. |
Complex |
plus(Complex v)
Returns sum of this and v
Creates new Complex w = this + v . |
Complex |
plus(double r)
Creates a new Complex C which is sum of this and r. |
Complex |
pow(Complex v)
Returns this to the pow of v. |
static Complex |
pow(Complex u,
Complex v)
Returns u to the pow of v. |
static Complex |
pow(Complex u,
double r)
Returns u to the pow of r. |
static Complex |
pow(Complex u,
int r)
Returns u to the pow of r. |
Complex |
pow(double r)
Returns this to the pow of r. |
Complex |
pow(int r)
Returns this to the pow of r. |
static double |
re(Complex u)
Returns real part of u. |
Complex |
set(Complex v)
Deprecated. |
Complex |
set(double aReal,
double aImag)
Deprecated. |
Complex |
setConjugate()
Deprecated. |
Complex |
setConjugate(Complex u)
Deprecated. |
Complex |
setCos()
Deprecated. this = cos(this) |
Complex |
setCos(Complex u)
Deprecated. this = cos(u) |
Complex |
setCosh()
Deprecated. this = sin(this) |
Complex |
setCosh(Complex u)
Deprecated. this = sin(u) |
Complex |
setCrossRatio(Complex a,
Complex b,
Complex c,
Complex d)
Deprecated. |
Complex |
setCube()
Deprecated. |
Complex |
setCube(Complex u)
Deprecated. |
Complex |
setDivide(Complex v)
Deprecated. this *= v. |
Complex |
setDivide(Complex u,
Complex v)
Deprecated. this =u/v. |
Complex |
setDivide(Complex u,
double r)
Deprecated. this = u / r |
Complex |
setDivide(double r)
Deprecated. this /= r. |
Complex |
setExp()
Deprecated. u = exp(u) |
Complex |
setExp(Complex u)
Deprecated. u = exp(u) |
Complex |
setFromPolar(double r,
double f)
Deprecated. this = r*exp(i*phi) |
void |
setIm(double i)
Set imag entry of this. |
Complex |
setInvert()
Deprecated. |
Complex |
setInvert(Complex u)
Deprecated. |
Complex |
setLog()
Deprecated. u = log(u) |
Complex |
setLog(Complex u)
Deprecated. |
Complex |
setMinus(Complex v)
Deprecated. this -= v. |
Complex |
setMinus(Complex u,
Complex v)
Deprecated. this = u - v |
Complex |
setMinus(Complex u,
double r)
Deprecated. this = u - r |
Complex |
setMinus(double r)
Deprecated. this -= r. |
Complex |
setNeg()
Deprecated. |
Complex |
setNeg(Complex u)
Deprecated. |
Complex |
setPlus(Complex v)
Deprecated. this += v. |
Complex |
setPlus(Complex u,
Complex v)
Deprecated. this = u + v |
Complex |
setPlus(Complex u,
double r)
Deprecated. this = u + r |
Complex |
setPlus(double r)
Deprecated. this += r. |
Complex |
setPlus(double x,
double y)
Deprecated. this += (x+yi). |
Complex |
setPow(Complex v)
Deprecated. this = this^v. |
Complex |
setPow(Complex u,
Complex v)
Deprecated. this = u^v |
Complex |
setPow(Complex u,
double r)
Deprecated. |
Complex |
setPow(double r)
Deprecated. this = this^r |
Complex |
setRandom()
Deprecated. |
void |
setRe(double r)
Set real part of this. |
static boolean |
setsCoinside(Complex[] c1,
Complex[] c2)
Indicates whether c1 equal to c2 as sets. |
static boolean |
setsCoinside(Complex[] c1,
Complex[] c2,
double eps)
Indicates whether c1 equal to c2 as sets. |
Complex |
setSin()
Deprecated. this = sin(this) |
Complex |
setSin(Complex u)
Deprecated. this = sin(u) |
Complex |
setSinh()
Deprecated. this = sin(this) |
Complex |
setSinh(Complex u)
Deprecated. this = sin(u) |
Complex |
setSqr()
Deprecated. |
Complex |
setSqr(Complex u)
Deprecated. |
Complex |
setSqrt()
Deprecated. u= sqrt(u) |
Complex |
setSqrt(Complex u)
Deprecated. |
Complex |
setTimes(Complex v)
Deprecated. this *= v. |
Complex |
setTimes(Complex u,
Complex v)
Deprecated. this = u * v |
Complex |
setTimes(Complex u,
double r)
Deprecated. this = u * r |
Complex |
setTimes(double r)
Deprecated. this *= r. |
Complex |
sin()
Returns sinus of this. |
static Complex |
sin(Complex u)
Returns sinus of u. |
Complex |
sinh()
Returns sinushyperbolicus of this. |
static Complex |
sinh(Complex u)
Returns sinushyperbolicus of u. |
Complex |
sqr()
Returns calculation root of this. |
static Complex |
sqr(Complex u)
Returns calculation root of u. |
Complex |
sqrt()
Returns w = sqrt(this). |
static Complex |
sqrt(Complex u)
Returns w = sqrt(u). |
Complex |
times(Complex v)
Creates a new Complex C which is product of mltiplication between this with v. |
Complex |
times(double r)
Creates a new Complex C which is product of mltiplication between this with r. |
Complex |
timesI()
Returns new Complex which is assigned with the
the product of this and i. |
java.lang.String |
toString()
Return this as string |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Complex ZERO
public static final Complex ONE
public static final Complex I
public static final Complex NEG_ONE
public static final Complex NEG_I
public static final Complex PI_OVER_4
public static final Complex PI3_OVER_4
public static final Complex PI5_OVER_4
public static final Complex PI7_OVER_4
public double re
public double im
| Constructor Detail |
public Complex()
public Complex(double aReal)
this with re = aReal.
aReal - is a real part of thispublic Complex(Complex u)
this which is equal to u
public Complex(double aReal,
double aImag)
this with real and imag entry.
| Method Detail |
public final double getRe()
this.
public final double getIm()
this.
public final void setRe(double r)
this.
public final void setIm(double i)
this.
public final void assign(double aReal,
double aImag)
this with real and imag entry.
public final Complex set(double aReal,
double aImag)
this)assign(double,double)public final Complex set(Complex v)
this)assign(Complex)public final Complex assign(Complex v)
this with v.
Assigns and returns instance of this.
thispublic final Complex assign(double re)
this with re.
Assigns and returns instance of this.
thispublic final Complex copy()
Complex that is copy of this.
public final java.lang.Object clone()
this to new Complex.
Objectcopy()public final boolean isInfinite()
this has any infinite entries.
public final boolean isNaN()
this has any Not-a-Number(NaN) entries
public boolean isZero()
this has only zero entries.
this is zero, false otherwisepublic final Complex plus(Complex v)
v
Creates new Complex w = this + v .
public final Complex plus(double r)
Complex C which is sum of this and r.
public final void assignPlus(double x,
double y)
this with sum of this and x,y.
re += x
im += y
public final Complex setPlus(double x,
double y)
assignPlus(double,double)public final void assignPlus(Complex v)
this with sum of this and v.
public final Complex setPlus(Complex v)
assignPlus(Complex)
public final void assignPlus(Complex u,
double r)
this with sum of u and r.
public final Complex setPlus(Complex u,
double r)
thisassignPlus(Complex,double)public final void assignPlus(double r)
this with sum of this and r.
public final Complex setPlus(double r)
thisassignPlus(double)
public final void assignPlus(Complex u,
Complex v)
this with sum of u and v.
public final Complex setPlus(Complex u,
Complex v)
thisassignPlus(Complex,Complex)public final Complex minus(Complex v)
Complex C which is product of substraction v from this.
public final Complex minus(double r)
Complex which is product of substraction r from this.
public final void assignMinus(double x,
double y)
this with product of substraction between this and x,y.
this = this - (x+iy).
public final void assignMinus(Complex v)
this with product of substraction between this and v.
this -= v.
public final Complex setMinus(Complex v)
thisassignMinus(Complex)public final void assignMinus(double r)
this with product of substraction between this and r.
this.re -= r.
public final Complex setMinus(double r)
thisassignMinus(double)
public final void assignMinus(Complex u,
Complex v)
this with product of substraction between tu and v.
this = u - v
public final Complex setMinus(Complex u,
Complex v)
thisassignMinus(Complex,Complex)
public final void assignMinus(Complex u,
double r)
this with product of substraction between tu and r.
this = u - r
public final Complex setMinus(Complex u,
double r)
thisassignMinus(Complex,double)public final Complex times(Complex v)
Complex C which is product of mltiplication between this with v.
w = this * vpublic final Complex times(double r)
Complex C which is product of mltiplication between this with r.
w = this * r.
public final void assignTimes(double x,
double y)
this with product of mltiplication between this with x,y.
public final void assignTimes(Complex v)
this with product of mltiplication between this with v
public final Complex setTimes(Complex v)
thisassignTimes( Complex v )public final void assignTimes(double r)
this with product of mltiplication between this with r
public final Complex setTimes(double r)
thisassignTimes( double r )
public final void assignTimes(Complex u,
Complex v)
this with product of mltiplication between u with v.
this = u * v
public final Complex setTimes(Complex u,
Complex v)
thisassignTimes( Complex u, Complex v )
public final void assignTimes(Complex u,
double r)
this with product of mltiplication between u with r.
this = u * r.
public final Complex setTimes(Complex u,
double r)
thisassignTimes( Complex u, double r )public final Complex timesI()
Complex which is assigned with the
the product of this and i.
i * thispublic final void assignTimesI()
this with i.
public final void assignTimesI(Complex v)
this with the product of v and i.
public final Complex divideI()
Complex which is assigned with the
the quotient of this and i.
i * thispublic final void assignDivideI()
this with i.
public final void assignDivideI(Complex v)
this with the quotient of v and i.
public final Complex divide(Complex v)
this and v.
Creates new Complex for the result.
If v is zero then the components of the
result equal plus or minus infinity or zero depending on
the sign of the related component of this.
this/vpublic final Complex divide(double r)
this and r.
Creates new Complex for the result.
If r is zero then the components of the
result equal plus or minus infinity or zero depending on
the sign of the related component of this.
this/r.
public final void assignDivide(double x,
double y)
this with product of division between this and x,y: this /= x+i*y.
If x,y is zero then the components of the
result equal plus or minus infinity or zero depending on
the sign of the related component of this.
public final void assignDivide(Complex v)
this with product of division between this and v.
this = this / v
If v is zero then the components of the
result equal plus or minus infinity or zero depending on
the sign of the related component of this.
public final Complex setDivide(Complex v)
assignDivide( Complex v )public final void assignDivide(double r)
this with product of division between this and r:this /= r.
If r is zero then the components of the
result equal plus or minus infinity or zero depending on
the sign of the related component of this.
public final Complex setDivide(double r)
assignDivide( double r )
public final void assignDivide(Complex u,
Complex v)
this with product of division between u and v: this = u / v.
If v is zero then the components of the
result equal plus or minus infinity or zero depending on
the sign of the related component of u.
public final Complex setDivide(Complex u,
Complex v)
assignDivide( Complex,Complex )
public final void assignDivide(Complex u,
double r)
this with product of division between u and r: this = u / r.
If r is zero then the components of the
result equal plus or minus infinity or zero depending on
the sign of the related component of u.
public final Complex setDivide(Complex u,
double r)
assignDivide( double r )public final Complex invert()
this.
Creates new Complex for the result.
In case of |this|==0 the following result occurs:
this.re = Double.POSITIVE_INFINITY, this.im = 0.
public static final Complex invert(Complex u)
u.
Creates new Complex that is invert of u.
In case of |u|==0 the following result occurs:
u.re = Double.POSITIVE_INFINITY, u.im = 0.
public final void assignInvert()
public final Complex setInvert()
assignInvert()public final void assignInvert(Complex u)
this with inverse of u.
this=1/u.
In case of |u|==0 the following result occurs:
this.re = Double.POSITIVE_INFINITY, this.im = 0
public final Complex setInvert(Complex u)
assignInvert(Complex u)public static final Complex conjugate(Complex u)
u.
Creates new Complex that conjugates u.
public final Complex conjugate()
this.
Creates new Complex that conjugates this.
public final void assignConjugate()
this.
this.im = -this.im
public final Complex setConjugate()
assignConjugate()public final void assignConjugate(Complex u)
this with conjugation of u.
this.re = u.re
this.im = -u.im
public final Complex setConjugate(Complex u)
assignConjugate()public static final Complex neg(Complex u)
u.
Creates new Complex that equals -u.
public final Complex neg()
this.
Creates new Complex that equals -this.
public final void assignNeg()
this with negative sign.
Assigns this with negative sign: this = -this .
public final Complex setNeg()
assignNeg()public final void assignNeg(Complex u)
this with negative u.
this = -u.
public final Complex setNeg(Complex u)
assignNeg( Complex u)public static final Complex sqr(Complex u)
u.
Creates a new Complex that equals square root of u.
public final Complex sqr()
this.
Creates a new Complex that equals square root of this
public final void assignSqr()
this with root of this.
this = sqr(this).
public final Complex setSqr()
assignSqr()public final void assignSqr(Complex u)
this with root of u.
this = sqr(u).
public final Complex setSqr(Complex u)
assignSqr( Complex u)public static final Complex cube(Complex u)
u.
Creates new Complex w = u^3.
public final Complex cube()
this.
Creates new Complex w = this^3.
public final void assignCube()
this with cube of this
this = this^3.
public final Complex setCube()
public final void assignCube(Complex u)
u
this = u^3.
public final Complex setCube(Complex u)
public static final double re(Complex u)
u.
u.re.public static final double im(Complex u)
u.
u.im.public static final Complex exp(Complex u)
u.
Creates new Complex w = exp(u)
public final Complex exp()
this.
Creates new Complex w = exp(this)
public final void assignExp()
this with exponent of this.
this = exp(this).
public final Complex setExp()
public final void assignExp(double x,
double y)
this with exponent of x+iy.
this = exp(x+iy).
public final void assignExp(Complex u)
this with exponent of u.
this = exp(u).
public final Complex setExp(Complex u)
public static final Complex log(Complex u)
u.
Creates new Complex that equals log(u).
public final Complex log()
this.
Creates new Complex that equals log(this).
public final void assignLog()
this with log(this).
this = log(this).
public final Complex setLog()
public final void assignLog(Complex u)
this with log(u).
this = log(u).
public final Complex setLog(Complex u)
public static final Complex sqrt(Complex u)
w = sqrt(u).
Creates new Complex : w = sqrt(u).
public final Complex sqrt()
w = sqrt(this).
Creates new Complex : w = sqrt(u).
public final void assignSqrt()
this with sqrt(this).
this = sqrt(this).
public final Complex setSqrt()
public final void assignSqrt(Complex u)
this with sqrt(u).
this = sqrt(u).
public final Complex setSqrt(Complex u)
public static final Complex pow(Complex u,
Complex v)
u to the pow of v.
Creates new Complex w = u^v
public final Complex pow(Complex v)
this to the pow of v.
Creates new Complex w = this^v.
public final void assignPow(Complex v)
this with product of this^v.
public final Complex setPow(Complex v)
public final void assignPow(Complex u,
Complex v)
this with product of u^v.
public final Complex setPow(Complex u,
Complex v)
public static final Complex pow(Complex u,
double r)
u to the pow of r.
Creates new Complex w = u^r
public final Complex pow(double r)
this to the pow of r.
Creates new Complex w = this^r
public final void assignPow(double r)
this with this to the pow of r.
this = this^r
public final Complex setPow(double r)
public final void assignPow(Complex u,
double r)
this with u to the pow of r.
this = u^r
public final void assignPow(Complex u,
int r)
this with u to the pow of r.
this = u^r
public static final Complex pow(Complex u,
int r)
u to the pow of r.
Creates new Complex w = u^r
public final Complex pow(int r)
this to the pow of r.
Creates new Complex w = this^r
public final void assignPow(int r)
this with this to the pow of r.
this = this^r
public final Complex setPow(Complex u,
double r)
public static final Complex sin(Complex u)
u.
Creates a new Complex w which equals sin(u)
public final Complex sin()
this.
Creates a new Complex w which equals sin(this)
public final void assignSin()
this with sinus this.
this = sin(this)
public final Complex setSin()
public final void assignSin(Complex u)
this with sinus u.
this = sin(u)
public final Complex setSin(Complex u)
public static final Complex cos(Complex u)
u.
Creates a new Complex w which equals cos(u)
public final Complex cos()
this.
Creates a new Complex w which equals cos(this)
public final void assignCos()
this with cosinus this.
this = cos(this)
public final Complex setCos()
public final void assignCos(Complex u)
this with cosinus u.
this = cos(u)
public final Complex setCos(Complex u)
public static final Complex sinh(Complex u)
u.
Creates a new Complex w which equals sinh(u)
public final Complex sinh()
this.
Creates a new Complex w which equals sinh(this)
public final void assignSinh()
this with sinushyperbolicus this.
this = sinh(this)
public final Complex setSinh()
public final void assignSinh(Complex u)
this with sinushyperbolicus u.
this = sinh(u)
public final Complex setSinh(Complex u)
public static final Complex cosh(Complex u)
u.
Creates a new Complex w which equals cosh(u)
public final Complex cosh()
this.
Creates a new Complex w which equals cosh(this)
public final void assignCosh()
this with cosinushyperbolicus this.
this = cosh(this)
public final Complex setCosh()
public final void assignCosh(Complex u)
this with cosinushyperbolicus u.
this = cosh(u)
public final Complex setCosh(Complex u)
public static final Complex fromPolar(double r,
double f)
w = r*exp(i*phi).
Creates a new Complex w = r*exp(i*phi)
public final void assignFromPolar(double r,
double f)
this = r*exp(i*phi).
public final Complex setFromPolar(double r,
double f)
public static final Complex crossRatio(Complex a,
Complex b,
Complex c,
Complex d)
public final void assignCrossRatio(Complex a,
Complex b,
Complex c,
Complex d)
public final Complex setCrossRatio(Complex a,
Complex b,
Complex c,
Complex d)
public final void assignRandom()
this=random().
public final Complex setRandom()
public static final double dot(Complex u,
Complex v)
r = _R^2.
Creates double with sum of multiplication between real and imag. parts of u,v
public final double dot(Complex v)
r = _R^2 .
Creates double with sum of multiplication between real and imag. parts of this,v
public static final double det(Complex u,
Complex v)
u,v.
public final double det(Complex v)
this,v.
public static final double distSqr(Complex u,
Complex v)
public final double distSqr(Complex v)
public static final double dist(Complex u,
Complex v)
public final double dist(Complex v)
public static final double abs(double x,
double y)
public static final double abs(Complex u)
public final double abs()
public static final double absSqr(double x,
double y)
public static final double absSqr(Complex u)
public final double absSqr()
public static final double arg(double x,
double y)
public static final double arg(Complex u)
public final double arg()
public final java.lang.String toString()
this as string
public final boolean equals(java.lang.Object o)
public final boolean equals(Complex c)
public final boolean equals(double x,
double y)
public static final boolean equals(double x1,
double y1,
double x2,
double y2)
public final boolean equals(Complex c,
double eps)
c equal to this
public static final boolean arraysCoinside(Complex[] c1,
Complex[] c2,
double eps)
c1 equal to c2
public static final boolean arraysCoinside(Complex[] c1,
Complex[] c2)
c1 equal to c2
public static final boolean setsCoinside(Complex[] c1,
Complex[] c2)
c1 equal to c2 as sets.
public static final boolean setsCoinside(Complex[] c1,
Complex[] c2,
double eps)
c1 equal to c2 as sets.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||