예제 #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);
 }