|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jv.number.PuComplex
Complex number and basic complex functions. Here is a listing with all implemented functions.
set(re, im) u=(re,im) with u PuComplex, re, im double copy(v) u=(v.re,v.im) with u PuComplex, v PuComplex add(u,v) w=u+v with u PuComplex, v PuComplex or double u.add(v) u+=v with u PuComplex, v PuComplex or double sub(u,v) w=u-v with u PuComplex, v PuComplex or double u.sub(v) u-=v with u PuComplex, v PuComplex or double mult(u.v) w=u*v with u PuComplex, v PuComplex or double u.mult(v) u*=v with u PuComplex, v PuComplex or double div(u,v) w=u/v with u PuComplex, v PuComplex or double u.div(v) u/=v with u PuComplex, v PuComplex or double sqr(u) w=u*u with u PuComplex u.sqr() u=u*u with u PuComplex cube(u) w=u*u*u with u PuComplex u.cube() u=u*u*u with u PuComplex abs(u) r=|u| with u PuComplex u.abs() r=|u| with u PuComplex u.sqrAbs() r=|u|^2 with u PuComplex inv(u) w=1/u with u PuComplex u.inv() u=1/u with u PuComplex re(u) r=re(u) with u PuComplex im(u) r=im(u) with u PuComplex conj(u) w=re(u)-i*im(u) with u PuComplex u.conj() u=re(u)-i*im(u) with u PuComplex neg(u) w=-u with u PuComplex u.neg() u=-u with u PuComplex arg(u) r=arg(u) with u PuComplex u.arg() r=arg(u) with u PuComplex polarToRect(r,f) w=r*exp(i*f) with r double, f double exp(u) w=exp(u) with u PuComplex u.exp() u=exp(u) with u PuComplex log(u) w=log(u) with u PuComplex u.log() u=log(u) with u PuComplex sqrt(u) w=sqrt(u) with u PuComplex, result with im >= 0. u.sqrt() u=sqrt(u) with u PuComplex, result with im >= 0. pow(u,v) w=u**v with u PuComplex, v PuComplex or double sin(u) w=sin(u) with u PuComplex cos(u) w=cos(u) with u PuComplex sinh(u) w=sinh(u) with u PuComplex cosh(u) w=cosh(u) with u PuComplex
| Field Summary | |
static PuComplex |
I
|
double |
im
|
static PuComplex |
NEG_I
|
static PuComplex |
NEG_ONE
|
static PuComplex |
ONE
|
static PuComplex |
PI_OVER_4
|
static PuComplex |
PI3_OVER_4
|
static PuComplex |
PI5_OVER_4
|
static PuComplex |
PI7_OVER_4
|
double |
re
|
static PuComplex |
ZERO
|
| Constructor Summary | |
PuComplex()
|
|
PuComplex(double aReal)
|
|
PuComplex(double aReal,
double aImag)
|
|
PuComplex(PuComplex u)
|
|
| Method Summary | |
double |
abs()
r = |u| |
static double |
abs(PuComplex u)
r = |u| |
PuComplex |
add(double v)
u += r. |
PuComplex |
add(PuComplex v)
u += v |
static PuComplex |
add(PuComplex u,
double v)
w = u + r. |
static PuComplex |
add(PuComplex u,
PuComplex v)
w = u + v |
double |
arg()
r = u.arg() |
static double |
arg(PuComplex u)
r = arg(u) |
PuComplex |
conj()
u = Re(u) - Im(u) |
static PuComplex |
conj(PuComplex u)
w = Re(u) - Im(u) |
PuComplex |
copy(PuComplex v)
u = (v.re, v.im) |
static PuComplex |
cos(PuComplex u)
w = cos(u) |
static PuComplex |
cosh(PuComplex u)
w = cosh(u) |
PuComplex |
cube()
u = u**3. |
static PuComplex |
cube(PuComplex u)
w = u ** 3. |
PuComplex |
div(double r)
u /= r In case of zero division the following result occurs: If |r|==0. and re==0 then re==Double.NaN. |
PuComplex |
div(PuComplex v)
u /=v In case of zero division the following result occurs: If |v|==0. and re==0 then re==Double.NaN. |
static PuComplex |
div(PuComplex u,
double r)
w = u / r In case of zero division the following result occurs: If |r|==0. and re==0 then re==Double.NaN. |
static PuComplex |
div(PuComplex u,
PuComplex v)
w = u / v In case of zero division the following result occurs: If |v|==0. and u.re==0 then w.re==Double.NaN. |
boolean |
equals(PuComplex z,
double tolerance)
|
boolean |
equals(PuComplex w,
PuComplex z,
double tolerance)
|
PuComplex |
exp()
u = exp(u) |
static PuComplex |
exp(PuComplex u)
w = exp(u) |
static double |
im(PuComplex u)
r = Im(u) |
PuComplex |
inv()
u = 1./u In case of |u|==0 the following result occurs: u.re = Double.POSITIVE_INFINITY, u.im = Double.POSITIVE_INFINITY. |
static PuComplex |
inv(PuComplex u)
w = 1./u In case of |u|==0 the following result occurs: w = PuComplex(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY) |
boolean |
isInfinite()
|
boolean |
isNaN()
|
PuComplex |
log()
u = log(u) |
static PuComplex |
log(PuComplex u)
w = log(u) |
PuComplex |
mult(double v)
u *= r. |
PuComplex |
mult(PuComplex v)
u *= v |
static PuComplex |
mult(PuComplex u,
double v)
w = u * r. |
static PuComplex |
mult(PuComplex u,
PuComplex v)
w = u * v |
PuComplex |
neg()
u = -u |
static PuComplex |
neg(PuComplex u)
w = -u |
static PuComplex |
polarToRect(double r,
double f)
w = r*exp(i*phi) |
static PuComplex |
pow(PuComplex u,
double r)
w = u**r. |
static PuComplex |
pow(PuComplex u,
PuComplex v)
w = u**v |
static double |
re(PuComplex u)
r = Re(u) |
PuComplex |
set(double aReal,
double aImag)
u = (re, im) |
static PuComplex |
sin(PuComplex u)
w = sin(u) |
static PuComplex |
sinh(PuComplex u)
w = sinh(u) |
PuComplex |
sqr()
u *=u |
static PuComplex |
sqr(PuComplex u)
w = u * u |
double |
sqrAbs()
r = |u|^2 |
PuComplex |
sqrt()
u= sqrt(u) |
static PuComplex |
sqrt(PuComplex u)
w = sqrt(u) |
PuComplex |
sub(double v)
u -= r. |
PuComplex |
sub(PuComplex v)
u -= v |
static PuComplex |
sub(PuComplex u,
double v)
w = u - r. |
static PuComplex |
sub(PuComplex u,
PuComplex v)
w = u - v |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final PuComplex ZERO
public static final PuComplex ONE
public static final PuComplex I
public static final PuComplex NEG_ONE
public static final PuComplex NEG_I
public static final PuComplex PI_OVER_4
public static final PuComplex PI3_OVER_4
public static final PuComplex PI5_OVER_4
public static final PuComplex PI7_OVER_4
public double re
public double im
| Constructor Detail |
public PuComplex()
public PuComplex(double aReal)
public PuComplex(PuComplex u)
public PuComplex(double aReal,
double aImag)
| Method Detail |
public PuComplex set(double aReal,
double aImag)
public PuComplex copy(PuComplex v)
public boolean isInfinite()
public boolean isNaN()
public boolean equals(PuComplex w,
PuComplex z,
double tolerance)
public boolean equals(PuComplex z,
double tolerance)
public static PuComplex add(PuComplex u,
PuComplex v)
public PuComplex add(PuComplex v)
public static PuComplex add(PuComplex u,
double v)
public PuComplex add(double v)
public static PuComplex sub(PuComplex u,
PuComplex v)
public PuComplex sub(PuComplex v)
public static PuComplex sub(PuComplex u,
double v)
public PuComplex sub(double v)
public static PuComplex mult(PuComplex u,
PuComplex v)
public PuComplex mult(PuComplex v)
public static PuComplex mult(PuComplex u,
double v)
public PuComplex mult(double v)
public static PuComplex div(PuComplex u,
PuComplex v)
public PuComplex div(PuComplex v)
public static PuComplex div(PuComplex u,
double r)
public PuComplex div(double r)
public static PuComplex sqr(PuComplex u)
public PuComplex sqr()
public static PuComplex cube(PuComplex u)
public PuComplex cube()
public static double abs(PuComplex u)
public double abs()
public double sqrAbs()
public static PuComplex inv(PuComplex u)
public PuComplex inv()
public static double re(PuComplex u)
public static double im(PuComplex u)
public static PuComplex conj(PuComplex u)
public PuComplex conj()
public static PuComplex neg(PuComplex u)
public PuComplex neg()
public static double arg(PuComplex u)
public double arg()
public static PuComplex polarToRect(double r,
double f)
public static PuComplex exp(PuComplex u)
public PuComplex exp()
public static PuComplex log(PuComplex u)
public PuComplex log()
public static PuComplex sqrt(PuComplex u)
public PuComplex sqrt()
public static PuComplex pow(PuComplex u,
PuComplex v)
public static PuComplex pow(PuComplex u,
double r)
public static PuComplex sin(PuComplex u)
public static PuComplex cos(PuComplex u)
public static PuComplex sinh(PuComplex u)
public static PuComplex cosh(PuComplex u)
|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||