I am new to Mathematica. I just want to evaluate a 2x2 Jacobian and then evaluate it on different values of the two variables x and y.
The values I want to use to evaluate the Jacobian are the result of NDSolve.
Code:
f[x_, y_] := 2 - 10 x^2; g[x_, y_] := 10 y - 2 y^2; sol = NDSolve[{x'[t] == f[x[t], y[t]], y'[t] == g[x[t], y[t]], x[0] == 1, y[0] == 1}, {x, y}, {t, 0, 10}]; JacobianMatrix[f_List?VectorQ, x_List] := Outer[D, f, x] /; Equal @@ (Dimensions /@ {f, x}); lx = Flatten[Map[x, Range[0, 10, 0.1]] /. sol]; ly = Flatten[Map[y, Range[0, 10, 0.1]] /. sol]; Now I want to evaluate the
JacobianMatrix[{f[x, y], g[x, y]}, {x, y}] on the values of lx and ly (no combinations), just take one value of each one and produce a Jacobian.
I've tried Map and Table and combinations with no result.
Any help is welcomed. Thanks!