Ejemplo n.º 1
0
 public ComplexClass Subtract(ComplexClass other)
 {
     return(new ComplexClass(
                this.a - other.a,
                this.b - other.b
                ));
 }
Ejemplo n.º 2
0
 public ComplexClass Multiply(ComplexClass other)
 {
     return(new ComplexClass(
                this.a * other.a - this.b * other.b,
                this.a * other.b - this.b * other.a
                ));
 }
Ejemplo n.º 3
0
 public ComplexClass Add(ComplexClass other)
 {
     return(new ComplexClass(
                other.a + this.a,
                other.b + this.b
                ));
 }