Example #1
0
 // provide alternative to overloaded - operator
 public static ComplexNumber Subtract(ComplexNumber x, ComplexNumber y)
 {
     return(x - y);
 }
Example #2
0
 // provide alternative to overloaded * operator
 public static ComplexNumber Multiply(ComplexNumber x, ComplexNumber y)
 {
     return(x * y);
 }
Example #3
0
 // provide alternative to overloaded + operator
 public static ComplexNumber Add(ComplexNumber x, ComplexNumber y)
 {
     // prođe kroz operator
     return(x + y);
 }