コード例 #1
0
 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()
                                                    );
 }
コード例 #2
0
 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()
                                                    );
 }