Esempio n. 1
0
 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;
 }
Esempio n. 8
0
 public void Print(complex a)
 {
     Console.WriteLine(a.ToString());
 }
Esempio n. 9
0
 public complex Divide(complex a, complex b)
 {
     return(a / b);
 }
Esempio n. 10
0
 public complex Multiply(complex a, complex b)
 {
     return(a * b);
 }
Esempio n. 11
0
 public complex Subtract(complex a, complex b)
 {
     return(a - b);
 }
Esempio n. 12
0
 //arithmetic methods
 public complex Add(complex a, complex b)
 {
     return(a + b);
 }