I have a function in its symbolic form. And R has the package Deriv which works well for what I am looking for but its painfully slow. CppAD in c++ does the automatic differentiation but I am not sure if there is a way it would work with higher order derivatives. This is an example ..
I am using PyDrake do build a simple model of a Franka Emika Panda robot arm which picks up and places a brick. I would like to observe how a change in the initial chosen starting position of my brick affects a custom target loss function. Therefore, I would like to use the AutoDiffXd functionality ..