Class NumericalDerivativesEx2

java.lang.Object
com.imsl.test.example.math.NumericalDerivativesEx2

public class NumericalDerivativesEx2 extends Object

Approximates one component of the gradient using numerical differentiation.

This example uses the same data as in example NumericalDerivativesEx1. In this case, numerical differentiation is used for \(y_1\) and the analytical derivative is used for \(y_2\). The input array options specifies that numerical differentiation with respect to \(y_2\) is skipped. This example illustrates using mixed numerical and analytical derivatives. Using analytical derivatives where possible helps improve accuracy.

See Also:
  • Constructor Details

    • NumericalDerivativesEx2

      public NumericalDerivativesEx2()
  • Method Details

    • main

      public static void main(String[] args)