Exemplo n.º 1
0
        static ComplexL MultiplyOf(ComplexL a, ComplexL b)
        {
            ComplexL res = new ComplexL(a);

            res.Multiply(b);
            return(res);
        }
Exemplo n.º 2
0
        private void Divide(ComplexL c)
        {
            if (Math.Abs(c.Abs) < double.Epsilon)
            {
                DivideByZeroEvent?.Invoke(this, new ComplexEventArgs("Divide by zero", this, c));
                return;
            }
            ComplexL t = new ComplexL(this);

            t.Multiply(c.Conjugate());
            t.Divide(c.Abs);
        }