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 y1 and the analytical derivative is used for y2. The input
array options
specifies that numerical differentiation with
respect to y2 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.