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()); } } }
public void DerivativeTest3() { var validValue = 1.0m; foreach (var(x, y) in Derivative.FindDerivative(testData1, 1.5m)) { if (Abs(y - validValue) > accuracy) { Assert.Fail(); } } }