示例#1
0
        public static Complejo suma(Complejo c1, Complejo c2)
        {
            double x = (c1.real + c2.real);
            double y = (c1.imag + c2.imag);

            return(new Complejo(x, y));
        }
示例#2
0
        public static Complejo producto(Complejo c1, Complejo c2)
        {
            double x = ((c1.real * c2.real)
                        - (c1.imag * c2.imag));
            double y = ((c1.real * c2.imag)
                        + (c1.imag * c2.real));

            return(new Complejo(x, y));
        }
示例#3
0
 public static Complejo opuesto(Complejo c)
 {
     return(new Complejo((c.real * -1), (c.imag * -1)));
 }
示例#4
0
 public static Complejo conjugado(Complejo c)
 {
     return(new Complejo(c.real, (c.imag * -1)));
 }