public ComplexStruct Minus(ComplexStruct x) //а) Вычитание комплексных чисел { ComplexStruct y; y.im = x.im - im; y.re = x.re - re; return(y); }
public ComplexStruct Multi(ComplexStruct x) { ComplexStruct y; y.im = re * x.im + im * x.re; y.re = re * x.re - im * x.im; return(y); }
public ComplexStruct Plus(ComplexStruct x) { ComplexStruct y; y.im = im + x.im; y.re = re + x.re; return(y); }