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.
Constructor and Description |
---|
NumericalDerivativesEx2() |
public static void main(String[] args)
Copyright © 2020 Rogue Wave Software. All rights reserved.