Ejemplo n.º 1
0
        public static ComplexNumber Pow(ComplexNumber value, double pow)
        {
            double magnitude = Math.Pow(value.Magnitude, pow);
            double phase     = value.Phase * pow;

            return(ComplexNumber.FromPolarCoordinates(magnitude, phase));
        }
Ejemplo n.º 2
0
        public static ComplexNumber Exp(ComplexNumber number)
        {
            double magnitude = Math.Pow(Math.E, number.Real);

            return(ComplexNumber.FromPolarCoordinates(magnitude, number.Imaginary));
        }