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