示例#1
0
 public static Complex operator /(ComplexNumber a, ComplexNumber b)
 => Complex.Divide(new Complex(a.Real, a.Imagin), new Complex(b.Real, b.Imagin));
示例#2
0
 public ComplexNumber(Complex value)
 {
     Value = value;
 }
示例#3
0
 public static Complex operator *(ComplexNumber a, ComplexNumber b)
 => Complex.Multiply(new Complex(a.Real, a.Imagin), new Complex(b.Real, b.Imagin));
示例#4
0
 public ComplexNumber(double real, double imagin)
 {
     Real   = real;
     Imagin = imagin;
     Complex value = new Complex(Real, Imagin);
 }