Пример #1
0
        public MyComplex Multi(MyComplex x)
        {
            double im = this._re * x._im + this._im * x._re;
            double re = this._re * x._re - this._im * x._im;

            return(new MyComplex(im, re));
        }
Пример #2
0
 public MyComplex Minus(MyComplex x)
 {
     return(new MyComplex(this._im - x._im, this._re - x._re));
 }
Пример #3
0
 public MyComplex Plus(MyComplex x)
 {
     return(new MyComplex(this._im + x._im, this._re + x._re));
 }