Strengthen your programming skills with tips and techniques from the experts
![](https://blogs.sas.com/content/iml/files/2017/01/ProgrammingTips-2.png)
I previously showed how to use SAS to compute finite-difference derivatives for smooth scalar-valued functions of several variables. You can use the NLPFDD subroutine in SAS/IML software to approximate the gradient vector (first derivatives) and the Hessian matrix (second derivatives). The computation uses finite-difference derivatives to approximate the derivatives. The