System.Numerics.Tests.ComplexTests.ATan_Basic C# (CSharp) Method

ATan_Basic() private method

private ATan_Basic ( double real, double imaginary ) : void
real double
imaginary double
return void
        public static void ATan_Basic(double real, double imaginary)
        {
            // Formula used in the feature: Atan(z) = (i/2) * (log(1-iz) - log(1+iz))
            // Verification is done with z = ATan(Tan(z));
            var complex = new Complex(real, imaginary);
            Complex tanComplex = Complex.Tan(complex);
            Complex atanComplex = Complex.Atan(tanComplex);
            VerifyRealImaginaryProperties(atanComplex, real, imaginary);
        }
ComplexTests