public class PComplex
extends java.lang.Object
Constructor and Description |
---|
PComplex(float r,
float theta) |
Modifier and Type | Method and Description |
---|---|
float |
abs()
return the absolute value of the complex number
|
Complex |
cartesian()
convert to cartesian coordinates
|
PComplex |
conjg()
return the complex conjugate
|
PComplex |
div(float scalar)
multiply a complex number by a scalar
|
PComplex |
div(float r,
float theta)
multiply two complex numbers
|
PComplex |
div(PComplex v)
multiply two complex numbers
|
boolean |
equals(java.lang.Object obj) |
PComplex |
inv()
invert the complex number
|
PComplex |
mult(float scalar)
multiply a complex number by a scalar
|
PComplex |
mult(float r,
float theta)
multiply two complex numbers
|
PComplex |
mult(PComplex v)
multiply two complex numbers
|
float |
r() |
float |
theta() |
java.lang.String |
toString() |
public static final PComplex Zero
public float r()
public float theta()
public PComplex mult(float r, float theta)
public PComplex mult(float scalar)
public PComplex div(float r, float theta)
public PComplex div(float scalar)
public PComplex inv()
public float abs()
public PComplex conjg()
public Complex cartesian()
public final java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object