Skip to content

Instantly share code, notes, and snippets.

@singularitti
Created May 5, 2019 07:37
Show Gist options
  • Save singularitti/1bd0ae655b0f00baef516e1388ade170 to your computer and use it in GitHub Desktop.
Save singularitti/1bd0ae655b0f00baef516e1388ade170 to your computer and use it in GitHub Desktop.
Jacobian matrix #math #Mathematica
(* Taken from http://mathworld.wolfram.com/Jacobian.html *)
JacobianMatrix[f_List?VectorQ, x_List] := Outer[D, f, x] /; Equal @@ (Dimensions /@ {f, x})
JacobianDeterminant[f_List?VectorQ, x_List] := Det[JacobianMatrix[f, x]] /; Equal @@ (Dimensions /@ {f, x})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment