public bool Equals(complex a) { if (a != null) { if (this.im == a.im && this.re == a.re) { return(true); } } return(false); }
public complex Subtract(complex a, complex b) { return a - b; }
public void Print(complex a) { Console.WriteLine (a.ToString()); }
public complex Multiply(complex a, complex b) { return a * b; }
public bool Equals(complex a) { if (a != null) { if (this.im == a.im && this.re == a.re) { return true; } } return false; }
public complex Divide(complex a, complex b) { return a / b; }
//arithmetic methods public complex Add(complex a, complex b) { return a + b; }
public void Print(complex a) { Console.WriteLine(a.ToString()); }
public complex Divide(complex a, complex b) { return(a / b); }
public complex Multiply(complex a, complex b) { return(a * b); }
public complex Subtract(complex a, complex b) { return(a - b); }
//arithmetic methods public complex Add(complex a, complex b) { return(a + b); }