I have:
f[x_, y_] = 1 - y;
g[x_, y_] = x^2 - y^2;
sol[{x0_, y_ 0}] :=
NDSolveValue[{x'[t] == f[x[t], y[t]], y'[t] == g[x[t], y[t]],
x[0] == x0, y[0] == y0}, {x[t], y[t]}, {t, 0, 15}]
Then:
sol[{2, 1}]
Which returns:
{InterpolatingFunction[{{0., 15.}}, <>][t],
InterpolatingFunction[{{0., 15.}}, <>][t]}
But when I try:
toplot = Map[sol, {{2, 1}}]
It returns:
Notice that there is no comma this time between the first and second interpolating function. Why not?
MatrixForm
, and the matrix form of a list does not have comma in between elements. $\endgroup$