/*
 * A class using the complex number data type to
 * perform basic operations
 *
 * Nadeem Abdul Hamid - CSC 120 - Fall 2004
 *
 */
 

public class ComplexArithmetic {
    public static void main(String[] args) {
        Complex a = new Complex( );      
        Complex b = new Complex( );      
        System.out.println(" Your first input was: " + a);
        System.out.println("Your second input was: " + b);
        System.out.println(a + " + " + b + " = " + a.add(b));
        System.out.println(a + " * " + b + " = " + a.multiply(b));
        System.out.println("- " + a + " = " + a.opposite());
        System.out.println("| " + a + " | = " + a.magnitude());
        System.out.println("conj(" + a + ") = " + a.conjugate());
        System.out.println(a + " == " + b + "?  " + a.equals(b));
    }
}