示例#1
0
 /// <summary>
 /// Konstruktor mit Double
 /// </summary>
 /// <param name="real">Realteil</param>
 public Complex(double real)
 {
     m_Real      = new Fraction(real);
     m_Imaginary = new Fraction(0);
 }
示例#2
0
 /// <summary>
 /// Konstruktor mit Brüchen
 /// </summary>
 /// <param name="real">Realteil</param>
 /// <param name="imag">Imaginärteil</param>
 public Complex(Fraction real, Fraction imag)
 {
     m_Real      = real;
     m_Imaginary = imag;
 }
示例#3
0
 /// <summary>
 /// Konstruktor mit Double
 /// </summary>
 /// <param name="real">Realteil</param>
 /// <param name="imag">Imaginärteil</param>
 public Complex(double real, double imag)
 {
     m_Real      = new Fraction(real);
     m_Imaginary = new Fraction(imag);
 }
示例#4
0
 /// <summary>
 /// Konstruktor mit Integer
 /// </summary>
 /// <param name="real">Realteil</param>
 /// <param name="imag">Imaginärteil</param>
 public Complex(int real, int imag)
 {
     m_Real      = new Fraction(real);
     m_Imaginary = new Fraction(imag);
 }
示例#5
0
 /// <summary>
 /// Kopierkonstruktor
 /// </summary>
 /// <param name="original">Originalobjekt</param>
 public Complex(Complex original)
 {
     m_Real      = new Fraction(original.Real);
     m_Imaginary = new Fraction(original.Imaginary);
 }
示例#6
0
 /// <summary>
 /// Konstruktor
 /// </summary>
 /// <param name="real">Realteil</param>
 public Complex(Fraction real)
 {
     m_Real      = real;
     m_Imaginary = new Fraction(0);
 }