System.Numerics.Tests.ComplexTests.Negate C# (CSharp) Метод

Negate() приватный Метод

private Negate ( double real, double imaginary ) : void
real double
imaginary double
Результат void
        public static void Negate(double real, double imaginary)
        {
            var complex = new Complex(real, imaginary);

            Complex result = -complex;
            VerifyRealImaginaryProperties(result, -complex.Real, -complex.Imaginary);

            result = Complex.Negate(complex);
            VerifyRealImaginaryProperties(result, -complex.Real, -complex.Imaginary);
        }
        
ComplexTests