05-06-2014 09:32 AM
The NLPFDD function in SAS/IML software computes the finite difference approximation of first and second derivatives for vector-values function (or scalar-valued, as you have here).
Here's an example: Optimizing? Two hints for specifying derivatives - The DO Loop
Also, if you have a time series with evenly spaced time points, you can use the DIF function in SAS/IML software or in the DATA step. See
05-06-2014 10:09 AM
Foryour function you can find the 10th derivative analytically by repeated application of the product and chain rule. Tenth derivatives do not often arise in numerical computations.
05-06-2014 10:38 AM
05-06-2014 03:49 PM
SAS does not have a procedure that outputs symbolic derivatives. You will have to do it by hand or use a symbolic algebra package such as Mathematica, Maple, or Maxima.