示例#1
0
    public static ComplexNumber Pow(ComplexNumber s1, double num)
    {
        double magnitude = s1.Magnitude();
        double angle     = s1.Angle();

        return(Math.Pow(magnitude, num) * new ComplexNumber(Math.Cos(num * angle), Math.Sin(num * angle)));
    }