Example #1
0
        public static Complex_Number operator *(Complex_Number a, Complex_Number b)
        {
            Complex_Number result = new Complex_Number();

            result.x = a.x * b.x - a.y * b.y;
            result.y = a.x * b.y + b.x + a.y;
            return(result);
        }
Example #2
0
        public static Complex_Number operator -(Complex_Number a, Complex_Number b)
        {
            Complex_Number result = new Complex_Number();

            result.x = a.x - b.x;
            result.y = a.y - b.y;
            return(result);
        }