예제 #1
0
        public Complex_number Product(Complex_number num)
        {
            double productReZ = GetReZ() * num.GetReZ() - GetImZ() * num.GetImZ();
            double productImZ = GetImZ() * num.GetReZ() + num.GetImZ() * GetReZ();

            return(new Complex_number(productReZ, productImZ));
        }
예제 #2
0
 public Complex_number Difference(Complex_number num)
 {
     return(new Complex_number(GetReZ() - num.GetReZ(), GetImZ() - num.GetImZ()));
 }
예제 #3
0
 public Complex_number Sum(Complex_number num)
 {
     return(new Complex_number(GetReZ() + num.GetReZ(), GetImZ() + num.GetImZ()));
 }