Пример #1
0
        public void DerivativeTestTwoDegree3()
        {
            var validValue = 0;

            foreach (var(x, y) in Derivative.FindDerivative(testData1, 2, 1.5m))
            {
                if (Abs(y - validValue) > accuracy)
                {
                    Assert.Fail(y.ToString());
                }
            }
        }
Пример #2
0
        public void DerivativeTest3()
        {
            var validValue = 1.0m;

            foreach (var(x, y) in Derivative.FindDerivative(testData1, 1.5m))
            {
                if (Abs(y - validValue) > accuracy)
                {
                    Assert.Fail();
                }
            }
        }