# pydrake.forwarddiff¶

pydrake.forwarddiff.cos(x)
pydrake.forwarddiff.derivative(function, x)

Compute the derivative of the function evaluated at the scalar input x using Eigen’s automatic differentiation.

The function should be scalar-input and scalar-output.

pydrake.forwarddiff.gradient(function, x)

Compute the gradient of the function evaluated at the vector input x using Eigen’s automatic differentiation.

The function should be vector-input and scalar-output.

pydrake.forwarddiff.jacobian(function, x)

Compute the jacobian of the function evaluated at the vector input x using Eigen’s automatic differentiation.

The function should be vector-input and vector-output.

pydrake.forwarddiff.sin(x)