Class Complex

java.lang.Object
  extended byComplex

public class Complex
extends java.lang.Object

Klasse zum Rechnen mit Komplexen Zahlen hk, 9.12.2001


Field Summary
static Complex I
           
private  double im
           
static Complex ONE
           
private  double re
           
static Complex ZERO
           
 
Constructor Summary
Complex()
           
Complex(double r)
           
Complex(double r, double i)
           
 
Method Summary
 double abs()
           
 Complex add(Complex b)
           
 Complex conjugate()
           
 Complex divide(Complex b)
           
 boolean equals(Complex b)
           
 double imTeil()
           
 Complex inverse()
           
 Complex multiply(Complex b)
           
 Complex negate()
           
 double reTeil()
           
 Complex subtract(Complex b)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

re

private double re

im

private double im

ZERO

public static final Complex ZERO

ONE

public static final Complex ONE

I

public static final Complex I
Constructor Detail

Complex

public Complex(double r,
               double i)

Complex

public Complex(double r)

Complex

public Complex()
Method Detail

reTeil

public double reTeil()

imTeil

public double imTeil()

toString

public java.lang.String toString()

equals

public boolean equals(Complex b)

add

public Complex add(Complex b)

subtract

public Complex subtract(Complex b)

negate

public Complex negate()

conjugate

public Complex conjugate()

abs

public double abs()

multiply

public Complex multiply(Complex b)

inverse

public Complex inverse()

divide

public Complex divide(Complex b)