All Packages Class Hierarchy This Package Previous Next Index
Class pnuts.ext.Complex
pnuts.ext.Complex
- public class Complex
- implements Numeric
An implementation of complex number.
This class is an examples of pnuts.lang.Numeric and
pnuts.lang.QuantityFactory.
A sample script to use this class is
here.
-
Complex(Number, Number)
-
-
add(Object)
-
-
compareTo(Object)
-
-
divide(Object)
-
-
doubleValue()
-
-
floatValue()
-
-
getImaginary()
-
-
getReal()
-
-
intValue()
-
-
inverse()
-
-
longValue()
-
-
multiply(Object)
-
-
negate()
-
-
subtract(Object)
-
-
toString()
-
Complex
public Complex(Number re,
Number im)
getReal
public Number getReal()
getImaginary
public Number getImaginary()
add
public Object add(Object o)
subtract
public Object subtract(Object o)
multiply
public Object multiply(Object o)
divide
public Object divide(Object o)
negate
public Object negate()
inverse
public Object inverse()
compareTo
public int compareTo(Object o)
intValue
public int intValue()
longValue
public long longValue()
floatValue
public float floatValue()
doubleValue
public double doubleValue()
toString
public String toString()
All Packages Class Hierarchy This Package Previous Next Index