Exemple #1
0
        /// <summary>Complex Numbers</summary>
        public void InitComplexNum(double realPart, double imaginaryPart)
        {
            this.realPart       = new Value(realPart, Restrictions.none);
            this.imaginaryPart  = new Value(imaginaryPart, Restrictions.none);
            this.deciValue      = realPart;
            this.primaryNumType = NumberType.imaginary;

            complex = new MathNet.Numerics.Complex(realPart, imaginaryPart);
        }
Exemple #2
0
        /// <summary>Complex Numbers</summary>
        public void InitComplexNum(double realPart, double imaginaryPart)
        {
            this.realPart = new Value(realPart, Restrictions.none);
            this.imaginaryPart = new Value(imaginaryPart, Restrictions.none);
            this.deciValue = realPart;
            this.primaryNumType = NumberType.imaginary;

            complex = new MathNet.Numerics.Complex(realPart, imaginaryPart);
        }