1
$\begingroup$

Please help me to determine the Jacobian matrix of $n$ functions with $n$ parameters with C++. I know MATLAB has the possibility to determine the Jacobian matrix by using jacobian(f,v), but I have to use C++.

I will appreciate your help.

  • 2
    The [Jacobian matrix](http://en.wikipedia.org/wiki/Jacobian_matrix_and_determinant) consists of the partial derivatives of the functions with respect to their arguments, so what you're really asking is "How do I calculate the derivative of a function in C++?" A quick Google search turned up [this](http://stackoverflow.com/questions/422594/derivatives-in-c-c) and [this](http://stackoverflow.com/questions/1559695/implementing-the-derivative-in-c-c) StackOverflow question which might be relevant to that.2011-07-24

2 Answers 2