public void ComplexDiLogAgreement () { // use negative arguments b/c positive real DiLog function complex for x > 1 foreach (double x in TestUtilities.GenerateRealValues(1.0E-2, 1.0E2, 10)) { Assert.IsTrue(TestUtilities.IsNearlyEqual( AdvancedMath.DiLog(-x), AdvancedComplexMath.DiLog(-x) )); } }