Re: For Loop and NDSolve
- To: mathgroup at smc.vnet.net
- Subject: [mg85211] Re: For Loop and NDSolve
- From: Szabolcs <szhorvat at gmail.com>
- Date: Sat, 2 Feb 2008 03:26:43 -0500 (EST)
- References: <fnuh4s$9ni$1@smc.vnet.net>
One more thing .... since that sparse array is diagonal you might try using a vector instead, something like f[x_?VectorQ] := {1, 2} x NDSolve[{u'[t] == f[u[t]], u[0] == {0, 0}}, u, {t, 0, 1}] This make make things better ... or worse ...