|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--calc.Complex
The Representation of a Complex Number
Field Summary | |
double |
imag
|
static int |
N
the "constant" for the upper border of the integral (= number of steps in which the integration is performed) used in zeta |
static Complex |
ONE
|
static int |
Q
the "constant" for the Number of partial Integrations in the Euler-MacLaurin-Formula used in zeta and zeta_fast |
double |
real
|
static Complex |
ZERO
|
Constructor Summary | |
Complex(Complex z1)
|
|
Complex(double real,
double imag)
|
Method Summary | |
double |
abs()
|
static double |
abs(Complex z1)
the absolute value |
void |
add(Complex z2)
|
static Complex |
add(Complex z1,
Complex z2)
z1, z2 -> z1 + z2 |
int |
compareTo(java.lang.Object o)
we compare the absolute values of complex numbers (needed for sorting) this leads to the inconsistency of ordering with equality (which is normally assumed): a.compareTo(b) = 0 =/=> a.equals(b) ! |
static Complex |
cos(Complex z1)
|
void |
div(Complex z2)
|
static Complex |
div(Complex z1,
Complex z2)
z1, z2 -> z1 / z2 |
boolean |
equals(java.lang.Object o)
two complex numbers are equal, if real- and imaginary part are equal |
static Complex |
exp(Complex z1)
|
int |
hashCode()
needed by HashTables (e.g. in ComplexPowerSum.multiply()) |
boolean |
isValid()
returns false, if any part of c is NaN (not a number) |
static Complex |
ln(Complex z1)
the natural logarithm |
static Complex |
log(Complex z1)
for usability, does the same as ln |
static void |
main(java.lang.String[] args)
only for testing purposes |
void |
mult(Complex z2)
|
static Complex |
mult(Complex z1,
Complex z2)
z1, z2 -> z1 * z2 |
void |
negate()
|
static Complex |
negate(Complex z1)
z -> -z |
static Complex |
pow(Complex z1,
Complex z2)
the general power function |
static Complex |
sin(Complex z1)
|
double |
square()
|
void |
subtract(Complex z2)
|
static Complex |
subtract(Complex z1,
Complex z2)
z1, z2 -> z1 - z2 |
java.lang.String |
toString()
|
static Complex |
zeta_fast(Complex s)
the riemann-zeta-function, improved calculation |
static Complex |
zeta_fastest(Complex s)
the riemann-zeta-function, "new and improved" calculation. |
static Complex |
zeta(Complex s)
the riemann-zeta-function |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public double real
public double imag
public static int Q
public static int N
public static final Complex ZERO
public static final Complex ONE
Constructor Detail |
public Complex(double real, double imag)
public Complex(Complex z1)
Method Detail |
public double abs()
public double square()
public void negate()
public void add(Complex z2)
public void subtract(Complex z2)
public void mult(Complex z2)
public void div(Complex z2)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isValid()
public static double abs(Complex z1)
public static Complex negate(Complex z1)
public static Complex add(Complex z1, Complex z2)
public static Complex subtract(Complex z1, Complex z2)
public static Complex mult(Complex z1, Complex z2)
public static Complex div(Complex z1, Complex z2)
public static Complex sin(Complex z1)
public static Complex cos(Complex z1)
public static Complex exp(Complex z1)
public static Complex pow(Complex z1, Complex z2)
public static Complex ln(Complex z1)
public static Complex log(Complex z1)
public static Complex zeta_fastest(Complex s)
public static Complex zeta_fast(Complex s)
public static Complex zeta(Complex s)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |