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.


Constructor Index

 o Complex(Number, Number)

Method Index

 o add(Object)
 o compareTo(Object)
 o divide(Object)
 o doubleValue()
 o floatValue()
 o getImaginary()
 o getReal()
 o intValue()
 o inverse()
 o longValue()
 o multiply(Object)
 o negate()
 o subtract(Object)
 o toString()

Constructors

 o Complex
 public Complex(Number re,
                Number im)

Methods

 o getReal
 public Number getReal()
 o getImaginary
 public Number getImaginary()
 o add
 public Object add(Object o)
 o subtract
 public Object subtract(Object o)
 o multiply
 public Object multiply(Object o)
 o divide
 public Object divide(Object o)
 o negate
 public Object negate()
 o inverse
 public Object inverse()
 o compareTo
 public int compareTo(Object o)
 o intValue
 public int intValue()
 o longValue
 public long longValue()
 o floatValue
 public float floatValue()
 o doubleValue
 public double doubleValue()
 o toString
 public String toString()

All Packages  Class Hierarchy  This Package  Previous  Next  Index