public StructComplex Minus(StructComplex x) { StructComplex y; y.im = im - x.im; y.re = re - x.re; return(y); }
public StructComplex Multi(StructComplex x) { StructComplex y; y.im = re * x.im + im * x.re; y.re = re * x.re - im * x.im; return(y); }
public StructComplex Plus(StructComplex x) { StructComplex y; y.im = im + x.im; y.re = re + x.re; return(y); }