edu.sc.seis.seisFile.sac
Class Complex

java.lang.Object
  extended by edu.sc.seis.seisFile.sac.Complex
Direct Known Subclasses:
PoleZero

public class Complex
extends java.lang.Object


Field Summary
protected  double imaginary
           
protected  double real
           
 
Constructor Summary
Complex(double real, double imaginary)
           
 
Method Summary
static Complex add(Complex a, Complex b)
           
static Complex add(Complex a, double b)
           
static Complex add(double a, Complex b)
           
 Complex conjg()
           
static Complex div(Complex a, Complex b)
           
static Complex div(Complex a, double b)
           
static Complex div(double a, Complex b)
           
 boolean equals(java.lang.Object obj)
           
 double getImaginary()
           
 double getReal()
           
 int hashCode()
           
 double mag()
           
static Complex mul(Complex a, Complex b)
           
static Complex mul(Complex a, double b)
           
static Complex mul(double a, Complex b)
           
static Complex sub(Complex a, Complex b)
           
static Complex sub(Complex a, double b)
           
static Complex sub(double a, Complex b)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

real

protected double real

imaginary

protected double imaginary
Constructor Detail

Complex

public Complex(double real,
               double imaginary)
Method Detail

getReal

public double getReal()

getImaginary

public double getImaginary()

mag

public final double mag()

conjg

public final Complex conjg()

add

public static final Complex add(double a,
                                Complex b)

add

public static final Complex add(Complex a,
                                double b)

add

public static final Complex add(Complex a,
                                Complex b)

sub

public static final Complex sub(double a,
                                Complex b)

sub

public static final Complex sub(Complex a,
                                double b)

sub

public static final Complex sub(Complex a,
                                Complex b)

mul

public static final Complex mul(double a,
                                Complex b)

mul

public static final Complex mul(Complex a,
                                double b)

mul

public static final Complex mul(Complex a,
                                Complex b)

div

public static final Complex div(double a,
                                Complex b)

div

public static final Complex div(Complex a,
                                double b)

div

public static final Complex div(Complex a,
                                Complex b)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object