desc.derivatives.FiniteDiffDerivative.compute_jvp3

classmethod FiniteDiffDerivative.compute_jvp3(fun, argnum1, argnum2, argnum3, v1, v2, v3, *args)[source]

Compute d^3f/dx^3*v1*v2*v3.

Parameters:
  • fun (callable) – function to differentiate

  • argnum1 (int or tuple of int) – arguments to differentiate with respect to. First entry corresponds to v1, second to v2 etc

  • argnum2 (int or tuple of int) – arguments to differentiate with respect to. First entry corresponds to v1, second to v2 etc

  • argnum3 (int or tuple of int) – arguments to differentiate with respect to. First entry corresponds to v1, second to v2 etc

  • v1 (array-like or tuple of array-like) – tangent vectors. Should be one for each argnum

  • v2 (array-like or tuple of array-like) – tangent vectors. Should be one for each argnum

  • v3 (array-like or tuple of array-like) – tangent vectors. Should be one for each argnum

  • args (tuple) – arguments passed to f

Returns:

jvp3 (array-like) – third derivative times vectors v2, v3, v3, summed over different argnums