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