public class Complex extends Object
| Constructor and Description |
|---|
Complex(double real,
double imag)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
abs()
Returns abs/modulus/magnitude.
|
Complex |
conjugate()
Returns the conjugate.
|
Complex |
cos()
Returns the complex cosine.
|
Complex |
div(Complex b)
Returns a / b.
|
boolean |
equals(Object o) |
Complex |
exp()
Returns the complex exponential.
|
int |
hashCode() |
double |
im()
Returns the imaginary part.
|
Complex |
minus(Complex b)
Returns this - b.
|
double |
phase()
Returns angle/phase/argument between -pi and pi.
|
Complex |
plus(Complex b)
Returns this + b.
|
double |
re()
Returns the real part.
|
Complex |
reciprocal()
Returns the reciprocal.
|
Complex |
sin()
Returns the complex sine.
|
Complex |
tan()
Returns the complex tangent.
|
Complex |
times(Complex b)
Returns this * b.
|
Complex |
times(double b)
Scalar multiplication.* Returns this * b.
|
String |
toString() |
public Complex(double real,
double imag)
real - real partimag - imaginary partpublic double abs()
public double phase()
public Complex times(double b)
public Complex conjugate()
public Complex reciprocal()
public double re()
public double im()
public Complex exp()
public Complex sin()
public Complex cos()
public Complex tan()
Copyright © 2015. All rights reserved.