Пример #1
0
        public static double Phase(Complex a)
        {
            double phase = 2 * Math.Atan((Math.Sqrt(a.Real * a.Real + a.Im * a.Im) - a.Real) / a.Im);

            return(phase);
        }
Пример #2
0
        public static double Magnitude(Complex a)
        {
            double mag = Math.Sqrt(Math.Pow(a.Real, 2) + Math.Pow(a.Im, 2));

            return(mag);
        }