public void SinCosCrazyDerivativeTest() { FunctionDerivativeTester.PerformDerivativeTest(new SinCosCrazyFunction(), Enumerable.Range(-100, 200).SelectMany(x => Enumerable.Range(-100, 200).Select(y => new double[] { x / 50.0, y / 50.0 } ).ToArray() ).ToArray() ); }
public void RosenbrockDerivativeTest() { FunctionDerivativeTester.PerformDerivativeTest(new RosenbrockFunction(), Enumerable.Range(-100, 200).SelectMany(x => Enumerable.Range(-100, 200).Select(y => new double[] { x / 70.0, y / 70.0 } ).ToArray() ).ToArray() ); }