System.Numerics.Tests.ComplexTests.Log C# (CSharp) Méthode

Log() private méthode

private Log ( double real1, double imaginary1, double real2, double imaginary2 ) : void
real1 double
imaginary1 double
real2 double
imaginary2 double
Résultat void
        public static void Log(double real1, double imaginary1, double real2, double imaginary2)
        {
            var complex1 = new Complex(real1, imaginary1);
            var complex2 = new Complex(real2, imaginary2);
            if (complex1 == Complex.Zero)
            {
                return;
            }

            VerifyLog10(complex1);
            VerifyLogWithBase(complex1);
            if (real1 != double.MaxValue && real1 != double.MinValue && imaginary1 != double.MaxValue && imaginary1 != double.MinValue)
            {
                VerifyLogWithMultiply(complex1, complex2);
                VerifyLogWithPowerMinusOne(complex1);
                VerifyLogWithExp(complex1);
            }
        }
ComplexTests